Ultimate aim of Class is ,I should contain Property and method who work on the property.
Is that is the case ,all the details to be passed to the class,should be go through Property only,for this getter and setter is enough ,so the method of the particular class should not take any input parameters and work on the property of the class only?
Ex:
Class A{
String one;
String two;
Void someMethod()
{
// work on the properties one and two
}
//here,Getter and setter for both properties one and two
}