GATE (Graduate Aptitude Test in Engineering) Computer Science & IT (CS) Programming and Data Structures-Abstract Data Types Study Material (Page 19 of 24)

Choose Programs:

🎓 Study Material (1190 Notes): 2024-2025 Syllabus

Rs. 1000.00 -OR-

3 Year Validity (Multiple Devices)

Topic-wise Notes & SampleDetails

🎯 302 Numeric, 2894 MCQs (& PYQs) with Full Explanations (2024-2025 Exam)

Rs. 650.00 -OR-

3 Year Validity (Multiple Devices)

CoverageDetailsSample Explanation

Help me Choose & Register (Watch Video) Already Subscribed?

Inheriting Further: Many Levels of Inheritance

Edit

Inheriting Further

  • Many times, one needs to further inherit the class which is already inherited. There are generally two different cases where this is needed. One is when the user deploys a bottom-up approach is designing. For example, a designer is given a job to design classes for a university which runs Commerce, Arts, MCA, and B. Ed. courses. Once the designer set out to design classes for representing students of these branches, he might start designing classes like Arts Stud, Com Stud, MCA Stud, and BEd Stud classes representing these students. He soon realizes that there are a few things com…

… (800 more words) …

Subscribe (by clicking here) to view full notes and track progress.

Varieties of Inheritance

Edit

Introduction

In this module, we will see what exactly an inheritance is and how it is provided by the C ++ language. The C ++ language provides inheritance in more than one way and each of them is suitable for a typical case. We will see what base and derived classes are, how a derived class can be derived further and what the consequences are. We will see how the access specifiers of the in the base class changes as per the specification provided in the inheritance definition.

A Base and a Derived Class

Inheritance is about generating a new class form an already existing class, inheriting all its data and function members but not limited to them and have an ability to add more or ev…

… (1856 more words) …

Subscribe (by clicking here) to view full notes and track progress.