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
How do you print array in java?
Can array grow dynamically in java?
What is ternary operator?
What are the parts of methodology?
How do you convert an int to a double in java?
How do you escape json?
What is output buffer?
How do you pass by reference?
What is static block?
What defines function?
What are encapsulation, inheritance and polymorphism?
How many boolean functions are there?
Which method must be implemented by all threads?
What are the types of sockets in java?
Why put method is used?