of the class ? (a) Bus (b) (c) vehicle (d) both (a) and (c) . . The data member that can be accessed from the function displaydata() (a) passenger (b) load (c) Ticket (d) All of these .
. The member function that can be accessed by an objects of bus Class is (a) (), () (b) () , () (c) (), () (d) All of these . . The member function that is inherited as public by Class Bus (a) (), () (b) (), () (c) (), () (d) none of these SECTION-B Very Short Answers .
What is inheritance? . What is a base class? .
Why derived class is called power packed class? . In what multilevel and multiple inheritance differ though both contains many base class? .
What is the difference between public and private visibility mode? SECTION-C Short Answers . What are the points to be noted while deriving a new class? .
What is difference between the members present in the private visibility mode and the members present in the public visibility mode . What is the difference between polymorphism and inheritance though are usedfor reusability of code? . What do you mean by overriding?
. Write some facts about the execution of constructors and destructors in inheritance SECTION - D Explain in detail . Explain the different types of inheritance . Explain the different visibility mode through pictorial representation .
Consider the following c++ code and answer the questions class Personal int Class,Rno; char Section; protected: char Name[ ]; public: personal(); void pentry(); void Pdisplay(); }; class Marks:private Personal { float M{ }; protected: char Grade[ ]; public: Marks(); void Mentry(); void Mdisplay(); }; class Result:public Marks float Total,Agg; public: char FinalGrade, Commence[ ]; Result(); void Rcalculate(); void Rdisplay(); }; . . Which type of Inheritance is shown in the program? .
. Specify the visibility mode of base classes. Chapter Page - - . Give the sequence of Constructor/ Destructor Invocation when object of class Result is created.
. . Name the base class(/es) and derived class (/es). .
Give number of bytes to be occupied by the