Originally posted by Anas El-Abboud:
would you tell me the way i can make : get() in class to parameters in another class without set() in the last one ?
If my understanding is correct, you're trying to code a class that has getter methods that will get values in another another class.
This isn't the normal way that we do things. Every POJO has its own set of getter & setter methods to allow another class to access/change its values. Not the other way round, as what you're trying to do.