hey guys, can you explain to me what method and property on OOP is? i search it on google, but still have no idea. can you explain it to me with the example of the program? thank you :)
C++ has no "methods", nor does it have "properties". In C++, they are called member functions and data members respectively. A member function is a function that's associated with a class. A data member is a variable/object that is also associated with a class. In order to access either a member function or a data member, you need an object; that is, an instantiation of a class.