Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings

Homework answers / question archive / 2


Computer Science

2.1 Single Inheritance (2 Classes)    Create base class named shape

    Create derived class named after given shape( e.g. Class Circle)

    Consider member variables inside base class.

    Take input and display output in derived class.    Calculate area inside base class

2.2 Multilevel Inheritance (3 Classes)

     Create base class named shape

     Create derived class1 named area

     Create derived class2 named volume

    Consider member variables inside base class

    Take input and display area in derived class area. Take input and display volume in derived class volume.

     Calculate volume, and area inside base class.

2.3 after done the above use polymorphism (Compile time polymorphism)(Function Overloading) and implement the 2.2 question.

Make different files for 2.1 , 2.2 and 2.3.

explain me all the 2.1, 2.2 and 2.3.

Purchase A New Answer

Custom new solution created by our subject matter experts


Related Questions