Forum

What is property an...
 
Notifications
Clear all

What is property and method in OOP?


(@elias)
Member Moderator
Joined: 5 months ago
Posts: 4273
Topic starter  

What is property and method in OOP?


   
Quote
(@elias)
Member Moderator
Joined: 5 months ago
Posts: 4273
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: