Which term is used to describe this object-oriented concept?

A class named Manager is derived from a parent class named Employee. The Manager
class includes characteristics that are unique to managers.
Which term is used to describe this object-oriented concept?

A class named Manager is derived from a parent class named Employee. The Manager
class includes characteristics that are unique to managers.
Which term is used to describe this object-oriented concept?

A.
Encapsulation

B.
Data modeling

C.
Inheritance

D.
Data hiding

Explanation:
Classes (but not structs) support the concept of inheritance. A class that derives from
another class (the base class) automatically contains all the public, protected, and internal
members of the base class except its constructors and destructors.
Incorrect:
not A: Encapsulation is sometimes referred to as the first pillar or principle of object-oriented
programming. According to the principle of encapsulation, a class or struct can specify how
accessible each of its members is to code outside of the class or struct. Methods and
variables that are not intended to be used from outside of the class or assembly can be
hidden to limit the potential for coding errors or malicious exploits.



Leave a Reply 0

Your email address will not be published. Required fields are marked *