exam questions

Exam 98-361 All Questions

View all questions & answers for the 98-361 exam

Exam 98-361 topic 1 question 53 discussion

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

Which of the following must exist to inherit attributes from a particular class?

  • A. Public properties
  • B. A has-a relationship
  • C. An is-a relationship
  • D. Static members
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
There must be some public properties that can be inherited.

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
simonere
Highly Voted 2 years, 10 months ago
An is-a relationship?
upvoted 9 times
JamieS
7 months, 2 weeks ago
The is-a relationship must exist, without that relationship nothing is inherited.
upvoted 1 times
...
Hashino
2 years, 5 months ago
this question is talking about requirements for inheriting. the "is-a" relationship is something the derived class gains after the inheritance. if an "is-a" relationship was required to inherit it would be impossible to inherit any class (besides System.Object)
upvoted 3 times
matt11
11 months, 1 week ago
This question is not great to be honest. I disagree with you that an "is-a" relationship is acquired after inheritance - a cat is "is-a" animal, and that perfectly describes the relationship between the two - I don't need to write any C# code for this to be true.
upvoted 1 times
...
...
Hashino
2 years, 4 months ago
also worth noting that a derived class can also inherit a protected attribute
upvoted 4 times
...
...
matt11
Most Recent 11 months, 1 week ago
This question makes barely any sense and is misleading, so should be removed. It's saying 'properties must be public in order for the derived classes to use them' - this is simply not true - they could equally be internal, protected, protected-internal, or even private-protected
upvoted 3 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 ...