Type Here to Get Search Results !

What is the term for a relationship where one class is a specialized version of another class?

0

 What is the term for a relationship where one class is a specialized version of another class?

A) Aggregation
B) Composition
C) Inheritance
D) Interface

Answer: C) Inheritance

Explanation: Inheritance defines a relationship between classes where one class (the subclass or derived class) inherits properties and methods from another class (the superclass or base class). This relationship allows for code reuse and the establishment of hierarchical classifications.

Post a Comment

0 Comments