This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
// Create the base class and declare the data member under protected access specifier and declare the function.
// Create the derived class and access the base class data members in the derived class.
// Create the object for derived class.
// Call the public member function of the derived class.
// Compile and run the program.
#include<iostream.h>
classbase
{
protected:
inti,j;//private to base but accessible to derived