exam questions

Exam 98-361 All Questions

View all questions & answers for the 98-361 exam

Exam 98-361 topic 1 question 6 discussion

Actual exam question from Microsoft's 98-361
Question #: 6
Topic #: 1
[All 98-361 Questions]

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
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
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:
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.

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Rour
1 year, 6 months ago
so is answer A: Encapsulation wrong?
upvoted 1 times
...
oliverrivasrivera
1 year, 6 months ago
The answer correct is the a, because the class manager it has member exlcusive.
upvoted 3 times
folderhuman
11 months, 1 week ago
The correct answer is inheritance. Encapsulation refers to access (like private, protected, and public).
upvoted 5 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...