Types of Inheritance - Part 1

Duration: 33 min

This video lesson is available to enrolled students.

Return to /learn/UPPSC-POLYTECHNIC-LECTURER-2025-CS/paper-1-programming-language/oops-with-c/types-of-inheritance/asset-types-of-inheritance-part-1 after enrolling

Inside: a video lesson and guided study material.

Module outline

  1. About Course: UPPSC Course Overview
  2. Interview Preparation & Guidance: Interview Preparation
  3. Paper 1 | General Hindi: हिन्दी की रूप रचना, वर्णमाला, समास, Multi-Topic Content (Cross-Concept Material), हिन्दी की ध्वनि और स्वनिम व्यवस्था, प्राचीन और मध्यकालीन भारतीय आर्यभाषाएँ, काव्य के लक्षण, हेतु और प्रयोजन, हिन्दी शब्द रचना, हिन्दी साहित्येतिहास दर्शन, भक्तिकालीन काव्यधाराएँ, भारतीय काव्यशास्त्र की परंपरा, भारतीय नवजागरण और स्वाधीनता आंदोलन, अन्य गद्य विधाएँ एवं प्रवासी साहित्य, निर्धारित उपन्यासों का तुलनात्मक अध्ययन, गोदान, हिन्दी कहानी का विकास, स्वातंत्र्योत्तर और नयी कहानी, हिन्दी निबंध का विकास, शुक्लोत्तर निबंध, द्विवेदी और शुक्ल युग के निबंध, हिन्दी की संवैधानिक स्थिति, आधुनिक भारतीय आर्यभाषाएँ और हिन्दी का उद्भव, हिन्दी भाषा प्रयोग के विविध रूप, रीतिकाल, जीवनी, द्विवेदी युग और छायावाद, रीति, वक्रोक्ति और औचित्य सिद्धान्त, शब्दशक्ति और ध्वनि सिद्धान्त, रस सिद्धान्त और साधारणीकरण, उत्तर आधुनिकतावाद, लोहिया दर्शन, हिन्दी उपन्यास का विकास, हिन्दी नवजागरण, अंबेडकर दर्शन, आदिकाल, प्रयोगवाद और नयी कविता, छायावादी काव्य: प्रसाद और निराला, प्रगतिवाद से समकालीन कविता, निर्गुण भक्ति काव्य, द्विवेदीयुगीन काव्य, रीतिकालीन काव्य, आरंभिक हिन्दी उपन्यास, स्वातंत्र्योत्तर उपन्यास, आत्मकथा, स्वाधीनता-पूर्व प्रेमचंदोत्तर उपन्यास, निर्धारित कहानियों का तुलनात्मक अध्ययन, साठोत्तरी नाटक, प्रसाद और प्रसादोत्तर युग के नाटक, भारतेन्दु युगीन नाटक, स्वातंत्र्योत्तर नाटक, भारतेन्दु युगीन निबंध, संस्मरण और रेखाचित्र, व्यंग्य, एक साहित्यिक की डायरी, संस्कृति के चार अध्याय, सगुण भक्ति काव्य, हिन्दी नाटक, एकांकी और रंगमंच, आधुनिक गद्य और हिन्दी नवजागरण, अलंकार सिद्धान्त, हिन्दी आलोचना का विकास, भक्ति आंदोलन, कल्पना, बिम्ब, प्रतीक, मिथक और फंतासी, नयी कविता का विस्तार और साठोत्तरी कविता, उत्तर-छायावादी और प्रगतिवादी काव्य, काव्यगुण और काव्यदोष, प्लेटो, अरस्तू और पाश्चात्य परंपरा, मार्क्सवाद, स्वच्छन्दतावादी काव्यशास्त्र, आधुनिक पाश्चात्य आलोचना, भाषा और भाषा परिवार, देवनागरी लिपि
  4. Paper 2 | General Studies: State Wise GK, Polity, Geography, History, GK- Current Affairs
  5. Paper 1 | Programming Language: Language Design, C Fundamentals, Control Flow, Functions, Arrays & Pointers, Storage Classes, Structures & Enums, DMA, Macros, Scoping & File Handling, OOPS with C++
  6. Paper 1 | Database Management Systems: Basics of DBMS, ER Diagram, Relational Model & Functional Dependencies, Keys & Integrity Constraints, Normalization (1NF - BCNF), Decomposition Properties & 4NF, File Organization & Indexing, Relational Algebra, SQL, Relational Calculus, Transaction Management, Concurrency Control, ORDBMS, NoSQL
  7. Paper 1 | Cyber Security: कंप्यूटर की मूल बातें और हार्डवेयर / Computer Fundamentals and Hardware, प्रत्यक्ष बोध / Literal Comprehension, कंप्यूटर सॉफ्टवेयर / Computer Software, निष्कर्षात्मक बोध / Inferential Comprehension, आलोचनात्मक बोध / Critical Comprehension, इंटरनेट और वर्ल्ड वाइड वेब / Internet and World Wide Web, ई-मेल और ऑनलाइन संचार / Email and Online Communication, साइबर सुरक्षा / Cyber Security, अपशिष्ट प्रबंधन / Waste Management, डिजिटल नैतिकता, बौद्धिक संपदा और समाज / Digital Ethics, IPR and Society, डिजिटल एवं नव माध्यम / Digital and New Media, शोध नैतिकता / Research Ethics, उभरती प्रौद्योगिकियाँ / Emerging Technologies, शिक्षा और शासन में ICT / ICT in Education and Governance, Society, Law & Ethics, Cyber Threats and Malware Attacks, Role of Internet and Web Services, Security in Mobile and Wireless Computing, Electronic Data Interchange and E-Commerce, Physical Security and Cryptography Basics, Intrusion Detection Systems (IDS), Cyber Safety and Security, Ethical Hacking, भौगोलिक संकेतों का संरक्षण / Protection of Geographical Indications
  8. Paper 1 | Computer Organization and Architecture: Basics of COA, Programming the Basic Computer, Cache Memory Organization, Input Output Organisation, Instr Formats & Modes, Register Transfer and Microoperations, Control Unit Design
  9. Paper 1 | Computer Networks: Introduction to CN, Data Communication, DLL: Access Control, DLL: Flow Control, DLL: Error Control, DLL: Framing, Data Link Layer - Ethernet, Net Layer: IPv4 & Proto, Net Layer: IP Addressing, Net Layer:Routing Protocol, Transport Layer Services, TL: Congestion & UDP, Application Layer, Hardware basics, Network Security
  10. Paper 1 | Design and Analysis of Algorithms: Algorithm Analysis, Time Complexity Analysis, Sorting Algorithms, Greedy Algorithms, Dynamic Programming, Minimum Spanning Trees, Shortest Path Algos, Advanced Algorithms
  11. Paper 1 | Data Structures: Introduction to DS, Array, Linked List, Stack, Queue, Tree, Graphs, Hashing
  12. Paper 1 | Discrete Structures and Theory of Logic: क्रमचय, संचय एवं प्रायिकता / Permutation, Combination and Probability, Set Theory, Relations, Functions, Propositional and Predicate Logic, Graph Theory, Group Theory
  13. Paper 1 | Software Project Management: Software Project Management
  14. Paper 2 | Operating Systems: Introduction to OS, Process Management, CPU Scheduling, Process Synchronization, Threads & Process Creation, Deadlock, Memory Management, Virtual Memory, Disc Scheduling, File Management, Unix OS, Linux OS, Security
  15. Paper 2 | Compiler Design: Intro to Compilers, Lexical Analysis, Grammar & CFG, Syntax Analysis: Top-Down, Syntax Analysis: Bottom-Up, Semantic Analysis & SDT, Intermediate Code Gen, Code Optimization, Run Time Environment, Introduction to TOC, Deterministic FA (DFA), Non-Deterministic FA, Regular Expressions, Pushdown Automata & CFG, Complexity Theory
  16. Paper 2 | Artificial Intelligence & High Performance Computing: Approaches to AI, Search Algorithms, Game Playing, Knowledge Representation, Planning, Multi Agent Systems, Natural Language Processing, क्लाउड और वितरित कंप्यूटिंग / Cloud and Distributed Computing
  17. Paper 2 | Image Processing: Digital Image Fundamentals, Image Enhancement, Image Restoration, Color Image Processing, Image Compression
  18. Paper 2 | Software Engineering: Fundamentals of Software Engineering, Software Requirements and Quality Assurance, Software Design, Estimation and Metrics, Software Testing, Software Maintenance and Configuration Management
  19. Paper 2 | Computer Graphics: Basics of Computer Graphics, 2-D Geometrical Transforms and Viewing, 3-D Object Representation, Geometric Transformations and Viewing
  20. Paper 2 | Web Technologies: Website, Browser & Services, Internet Fundamentals, Web Design & Development, Protocols & Services, Web Publishing & Hosting, Server Side & Security, Emerging Technologies, HTML Basics, JavaScript-Basics, Java
  21. Paper 2 | Soft Computing: Fuzzy Sets, Artificial Neural Networks, Genetic Algorithms
  22. Paper 2 | Distributed System: Distributed Systems
  23. UPPSC Live Class Recordings: UPPSC Polytechnic Lecturer 2025 (CS)
  24. Previous Year Papers:
  25. Mock Test:
AI summary & chapters

AI Summary

An AI-generated summary of this video lecture.

This lecture introduces the fundamental concepts of inheritance within Object-Oriented Programming Systems (OOPS) using C++. The instructor begins by establishing the context of OOPS and immediately transitions to visualizing inheritance through class diagrams. The core content systematically defines and illustrates six distinct types of inheritance: Single, Multilevel, Multiple, Hierarchical, Hybrid, and Multipath. A significant portion of the lecture is dedicated to distinguishing between these types through visual diagrams, syntax definitions, and concrete C++ code examples. The instructor emphasizes language-specific constraints, noting that while C++ supports Multiple Inheritance, Java does not. The teaching flow moves from abstract definitions to practical implementation, demonstrating how derived classes inherit properties and member functions from base classes. Key syntax patterns such as 'class Derived : public Base' are highlighted, and specific examples involving classes like Employee, Name, Array, String, Person, and Student are used to solidify understanding of inheritance mechanisms.

Chapters

  1. 0:00 – 2:00 00:00-02:00

    The lecture opens with an introduction to Object-Oriented Programming Systems (OOPS) using C++, specifically focusing on the topic of 'Types of Inheritance'. The instructor sets the stage for a detailed discussion by displaying the course title and topic heading on screen. Visual cues include text overlays reading 'OOPS with C++' and 'Types of Inheritance'. The instructor begins drawing a diagram to illustrate the relationship between classes, starting with class A as the base. The visual progression shows the addition of class B inheriting from A, and then class C inheriting from B. This initial segment establishes the foundational concept of inheritance as a chain where one class derives properties from another, setting up the visual framework for subsequent detailed explanations of inheritance structures.

  2. 2:00 – 5:00 02:00-05:00

    The instructor transitions to a comprehensive slide displaying six distinct diagrams illustrating different inheritance structures. The visible text on screen lists 'Single Inheritance', 'Multilevel Inheritance', 'Multiple Inheritance', 'Hierarchical Inheritance', 'Hybrid Inheritance', and 'Multipath Inheritance'. The instructor underlines the text for 'Multilevel Inheritance' to draw attention to it. A critical annotation occurs where the instructor writes 'C++' next to Multiple Inheritance and crosses out support for Java, marking a cross next to 'Java'. This visual distinction highlights language-specific constraints regarding inheritance support. The instructor uses red annotations to highlight specific relationships within the diagrams, particularly focusing on 'Hybrid Inheritance' by drawing a large bracket around its components. These annotations distinguish between single, multiple, and multilevel inheritance structures within the hybrid model, providing a visual comparison of how different types combine.

  3. 5:00 – 10:00 05:00-10:00

    The lecture focuses on defining and illustrating Single Inheritance. A diagram shows class B inheriting from class A, accompanied by a text definition stating that one derived class inherits properties and member functions of one base class. The instructor highlights key terms like 'one derived class' and 'one base class'. C++ syntax for implementing this inheritance is displayed, showing the pattern 'class Derived_Class_Name : <access_specifier> Base_Class_Name'. Handwritten annotations label A as 'Parent' and B as 'Child/Derived'. The instructor uses red underlining to emphasize syntax components. This segment transitions from abstract definitions to concrete implementation, preparing the viewer for code examples that demonstrate how inheritance is practically applied in C++ programming environments.

  4. 10:00 – 15:00 10:00-15:00

    The video transitions to a concrete C++ code example demonstrating single inheritance. The instructor highlights the `Employee` class inheriting from the `Name` class using public inheritance syntax. The code demonstrates how member functions like `getName()` and `printName()` from the base class are utilized within the derived class. The instructor points to the inheritance syntax 'class Employee : public Name' and highlights inherited member function calls. The code shows member functions being defined for both classes, and how they are called in the main function to input and display employee details. An output window shows sample execution with input values, illustrating the runtime behavior of single inheritance where derived class objects can access base class functionality.

  5. 15:00 – 20:00 15:00-20:00

    The instructor explains Multiple Inheritance in C++, defining it as a scenario where one derived class inherits properties from more than one base class. A diagram shows Class C inheriting from both Class A and Class B to visualize the concept. The lesson transitions into a concrete code example involving three classes: Array, String, and Calculate, where Calculate inherits from both Array and String. The instructor uses red underlining of key terms like 'one derived class' and 'more than one base class'. Checkmarks are added to diagram nodes A, B, and C. Red circles highlight inheritance syntax in code, specifically showing 'class Calculate : public Array, public String'. This segment clarifies how a single class can derive from multiple sources, contrasting with the single base class model previously discussed.

  6. 20:00 – 25:00 20:00-25:00

    The video segment transitions from an example of multiple inheritance to the definition and syntax of hierarchical inheritance. The instructor first reviews code where a `Calculate` class inherits from both `Array` and `String`, demonstrating how multiple base classes are utilized. Subsequently, the lesson shifts to hierarchical inheritance, defining it as a scenario where multiple derived classes inherit from a single base class. The syntax for Hierarchical Inheritance is displayed, showing 'class Derived1_Class_Name : <access_specifier> Base_Class'. A diagram shows a single base class with multiple derived classes branching out. The instructor highlights inheritance relationships in code and explains the concept of a single base class with multiple derived classes, establishing the pattern where one parent serves many children.

  7. 25:00 – 30:00 25:00-30:00

    The instructor explains a C++ example of hierarchical inheritance involving three classes: Person, Employee, and Student. The code demonstrates how both Employee and Student inherit from the base class Person. Specific methods like `read()`, `printData()`, `computeSal()`, and `computeGrade()` are highlighted to show how data is processed in the derived classes. The instructor points to code sections, circles key functions like `read()` and `printData()`, and checks off steps in the main function. The visual evidence includes text on screen showing 'class Employee : public Person' and 'class Student : public Person'. This segment reinforces the hierarchical model by showing practical implementation where distinct derived classes share common functionality from a single parent class.

  8. 30:00 – 33:00 30:00-33:00

    The final segment of the lecture concludes the review of hierarchical inheritance examples. The instructor ensures that the relationship between the Person base class and its derived classes Employee and Student is fully understood. The code execution flow in the main function is reviewed to show how objects of derived classes are instantiated and used. The instructor likely summarizes the key takeaways regarding inheritance types covered in the lecture, including Single, Multiple, and Hierarchical. The visual focus remains on the code structure demonstrating inheritance syntax. This closing portion solidifies the practical application of hierarchical inheritance, ensuring students can identify and implement this pattern in their own C++ programs.

The lecture provides a structured introduction to inheritance in C++, progressing from conceptual definitions to practical code implementation. The instructor effectively uses visual diagrams and syntax highlighting to differentiate between Single, Multiple, and Hierarchical inheritance. A key pedagogical strategy is the use of concrete examples like Employee/Name for single inheritance and Person/Employee/Student for hierarchical inheritance. The distinction regarding language support, specifically C++ allowing Multiple Inheritance while Java does not, is a critical technical detail emphasized through annotations. The teaching flow ensures that students understand both the theoretical structure of inheritance hierarchies and their syntactic representation in C++. The consistent use of 'public' access specifiers in the code examples reinforces standard practices for inheritance visibility. The summary captures the essential progression from abstract concepts to executable code, providing a comprehensive overview of the lecture's educational content.

Loading lesson…