Can someone teach me what usage of accesor and mutator,default constractor and normal constructor ?
If we assign any value to variable, it is treated as default constructor
salam,mikhastam bedonam,che shekli mishe ie barname dorost kard
If u doesnt define constructor for ur class then java ll automatically provide default constructor for ur class..it contains no parameters and all values initialized to null or zero...
Can i assume as accessor making clone out of private data and make the clone usable by class?
Hacı bırak bu işleri ;)
Accesor and mutators, are your "getter" and "setter" methods. They are methods accessed outside of the class to change (private variables with in a class) for instance. Default constructor doesn't have parameters. (called be default) the same constructor can be called with parameters,. Java will interpret which constructor to use. Called "overriding" .