Answer:
Properties are used to represent data, whereas methods are used to performs actions.
Properties are created by using getter and setter. get{} and set{} but methods create like public void method1(parameter list here)
Asked In: Many Interviews |
Alert Moderator