Question:

Given below are two statements: Assertion (A): C++ is an object-oriented language. Reason (R): C++ supports inheritance, which is an attribute of object-oriented language.

Show Hint

C++ is object-oriented because it supports classes, objects, inheritance, polymorphism, encapsulation, and abstraction.
Updated On: May 18, 2026
  • Both (A) and (R) are correct and (R) is the correct explanation of (A)
  • Both (A) and (R) are correct but (R) is not the correct explanation of (A)
  • (A) is correct but (R) is not correct
  • (A) is not correct but (R) is correct
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

Concept:
Object-oriented programming is based on concepts such as classes, objects, inheritance, polymorphism, encapsulation, and abstraction.

Step 1: Check Assertion (A).

C++ supports object-oriented programming. It allows the creation of classes and objects. \[ A \text{ is correct} \]

Step 2: Check Reason (R).

Inheritance is one of the important features of object-oriented programming. C++ supports inheritance, where one class can acquire properties of another class. \[ R \text{ is correct} \]

Step 3: Check explanation.

Since inheritance is an important feature of object-oriented programming, support for inheritance helps explain why C++ is called an object-oriented language. \[ \therefore \text{Correct Answer is (A)} \]
Was this answer helpful?
0
0