Member Variable & Member Function
Member Variable : Generally member variable use for assign the data or value of object attributes. We can use any types of data such as any built-in data type, array, pointer, structure, enum or class type data. What type of data we use for our class, it is depend on the object attribute of the class.
Member Function : Generally we define member function for work with the member variable which we declare in the class. We define the member function for showing the behaviors of the objects.
We can declare one or more member variable or function.
We can define these member by public, private or protected. We discuss later about these feature.
No comments:
Post a Comment