Forum

What is property an...
 
Notifications
Clear all

What is property and method in OOP?


(@elias)
Illustrious Member
Joined: 4 months ago
Posts: 4277
Topic starter  

What is property and method in OOP?


   
Quote
(@elias)
Illustrious Member
Joined: 4 months ago
Posts: 4277
Topic starter  

In OOP the primary structure is an object. Method is a named action which can be applied to the object. Property is a named value, which the object has. For example, object Human has the property 'Age'. function is a more general thing, than a method.


   
ReplyQuote
Share: