exam questions

Exam 70-483 All Questions

View all questions & answers for the 70-483 exam

Exam 70-483 topic 1 question 13 discussion

Actual exam question from Microsoft's 70-483
Question #: 13
Topic #: 1
[All 70-483 Questions]

You are developing an application. The application includes classes named Employee and Person and an interface named IPerson.
The Employee class must meet the following requirements:
✑ It must either inherit from the Person class or implement the IPerson interface.
✑ It must be inheritable by other classes in the application.
You need to ensure that the Employee class meets the requirements.
Which two code segments can you use to achieve this goal? (Each correct answer presents a complete solution. Choose two.)

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D
Show Suggested Answer Hide Answer
Suggested Answer: BD 🗳️
Sealed - When applied to a class, the sealed modifier prevents other classes from inheriting from it.
References: http://msdn.microsoft.com/en-us/library/88c54tsw(v=vs.110).aspx

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
zzMichielzz
4 years, 6 months ago
B,D. From abstract classes you can inherit, from sealed classes is nada, njento, nothing
upvoted 3 times
...
lh2607
4 years, 9 months ago
B, D are correct. Cannot inherit from sealed classes.
upvoted 1 times
...
robinnirola
5 years ago
Ans B,D
upvoted 2 times
...
tanujgyan
5 years ago
The solution answer is correct. Sealed class cannot be instantiated
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago