Question
Easy
Inheritance allows the following in C++ program:
1
Class Re-usability
2
Creating a hierarchy of classes
3
Extendibility
4
All options are correct
Question Details
Time to Solve: 12
Exam: HTET
Level/Paper: Level 3
Chapter: Object-Oriented Programming (C++)
Topic: Inheritance
Correct Answer
Option D
Explanation
The correct option is (4): Inheritance is a fundamental pillar of Object-Oriented Programming (OOP) in C++ that allows a new class (derived class) to acquire properties and behaviors from an existing class (base class). This mechanism directly enables all the listed options. Class Re-usability is achieved because the derived class automatically incorporates the base class's implemented code, eliminating the need for code duplication. By structuring classes in parent-child relationships, inheritance…Read More
Similar Questions from HTET Exam - Level 3 - Year 2021
Question 1
Easy
Source :
HTET 2021
Excel workbook is a collection of:
Chapter :
Office Automation Tools
Topic :
Spreadsheet (MS Excel)
Question 2
Easy
Source :
HTET 2021
Which of the following is the scope resolution operator in C++ language ?
Chapter :
Object-Oriented Programming (C++)
Topic :
Class & Object in C++
Question 3
Easy
Source :
HTET 2021
Arrange the following activities to form a general software engineering process model:
(a) Modelling
(b) Planning
(c) Deployment
(d) Construction
(e) Communication
Chapter :
Software Engineering & Problem Solving
Topic :
SDLC (Major stages)
Question 4
Easy
Source :
HTET 2021
Which of the following is not a DDL command?
Chapter :
Database Management System (DBMS) & SQL
Topic :
SQL