does java have something similar to C# properties?
Posted
by Nima Rikhtegar
on Stack Overflow
See other posts from Stack Overflow
or by Nima Rikhtegar
Published on 2010-06-03T03:59:53Z
Indexed on
2010/06/03
4:04 UTC
Read the original article
Hit count: 291
C# properties (I mean get and set methods) are a very useful feature. does java have something similar to C# properties too. I mean how we can implement something like the following C# code in java:
public string Name
{
get
{
return name;
}
set
{
name = value;
}
}
thank you in advance
© Stack Overflow or respective owner