Answer Posted / amol patil
That means you should use set<yourPropertyName> for methods
that can modify
a property (normally a property maps directly to an instance
variable, but not
necessarily) and get<yourPropertyName> for methods that can
read a property.
For example, a String variable name would have the following
getter/setter methods:
Is This Answer Correct ? | 2 Yes | 5 No |
Post New Answer View All Answers
What are design patterns and please explain?
Can we create more than one object singleton class?
What is floor in java?
What is multiple inheritance? Is it supported by java?
What is busy spin, and why should you use it?
What is the full form of jpeg?
What does pointer mean?
Which list is sorted in java?
Which oo concept is achieved by using overloading and overriding?
What is java and their uses?
Why declare Main() method as a static in java ?
Outline the major features of java.
What is diamond operator in java?
What is independent and dependent variables in research?
What are multiple inheritances?