Which of the following properties should you call from the myMethod class?

You work as the application developer at Domain.com. To get information on a specific method named myMethod, you use Reflection.
You need to find out if myMethod can be accessed from a derived class.
Which of the following properties should you call from the myMethod class?

You work as the application developer at Domain.com. To get information on a specific method named myMethod, you use Reflection.
You need to find out if myMethod can be accessed from a derived class.
Which of the following properties should you call from the myMethod class?

A.
Call the IsAssembly property.

B.
Call the IsVirtual property.

C.
Call the IsStatic property.

D.
Call the IsFamily property.

Explanation:
The IsFamily property determines whether the method is accessible onlsecy to the class and descendant classes.
IsAssembly determines accessibility from within the assembly.
IsVirtual indicates whether the method is virtual.
IsStatic indicates whether the method is static.



Leave a Reply 1

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


mr_tienvu

mr_tienvu

I have the same idea. D