4.A program to demonstrate how ambiguity is avoided in single inheritance using scope resolution operator.
5.A program consists of a base class and a derived class. The base class data members are name, roll number and sex. The derived class data members are height and weight. The derived class has been declared as an array of class objects. The member functions are used to get information on the derived class from the keyboard and display the contents of the array of class objects on the screen.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here