98-361 · Question #6
98-361 Question #6: Real Exam Question with Answer & Explanation
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 sometim
Question
Options
- AEncapsulation
- BData modeling
- CInheritance
- DData 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. 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.
Community Discussion
No community discussion yet for this question.