PrepAway - Latest Free Exam Questions & Answers

Which of the following is TRUE with regards to the virtual modifier?

You are employed as a developer at ABC.com. You make use of C# and ASP.NET for
development purposes.
You are in the process of creating a class that makes use of a method using the virtual modifier.
Which of the following is TRUE with regards to the virtual modifier? (Choose all that apply.)

PrepAway - Latest Free Exam Questions & Answers

A.
You are unable to make use of the virtual modifier with the static, abstract, private or override
modifiers.

B.
You are able to make use of the virtual modifier with the static, abstract, private or override
modifiers.

C.
The use of the virtual modifier prevents inheritance of the class.

D.
The virtual modifier is used in a class declaration to indicate that a class is intended only to be a
base class of other classes.

2 Comments on “Which of the following is TRUE with regards to the virtual modifier?


Leave a Reply