nerdexam
Microsoft

98-361 · Question #6

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…

The correct answer is C. Inheritance. 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. not A: Encapsulation is…

WAN Optimization Fundamentals and Principles

Question

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?

Options

  • AEncapsulation
  • BData modeling
  • CInheritance
  • DData hiding

How the community answered

(37 responses)
  • A
    8% (3)
  • B
    14% (5)
  • C
    76% (28)
  • D
    3% (1)

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. 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.

Topics

#inheritance#OOP#derived class#base class

Community Discussion

No community discussion yet for this question.

Full 98-361 Practice