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.)

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.)

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.



Leave a Reply 2

Your email address will not be published. Required fields are marked *