Saturday, 2 October 2010

member functions

The functions that are defined inside the class are called as member functions. Member functions provide controlled access to the data members of a class. The difference between a method and a function is that function defined inside a class is a method.
The members of a class can be accessed by using the object of that class and dot (.) operator.

types of member functions

1. Normal Member Function

  


No comments:

Post a Comment