Difference between getter and setter method in java
Answers
Answered by
0
Difference between constructor and getter and setter. ... If I do in another way using getter and setter methods in laptopRecord.java as follows, I get the same result. But I am not getting what is use of getter and setter methods if actually we can achive the results with constructor as well.
Similar questions