Home » Archives for October 19th, 2009
Protected Access Specifier
Protected Access Specifier:
The public members of a class are accessible by all functions in the program and the private members of a class are accessible only by member functions and friend functions of that class. Similarly, the protected members of a class are accessible by the member functions and friend functions of that class.
The protected members...
Inheritance
Inheritance:
Inheritance is the second most important feature of the Object Oriented Programming. In inheritance, the code of existing classes is used for making new classes. This saves time for writing and debugging the entire code for a new class.
To inherit means to receive. In inheritance a new class is written such that it can access or use the members...