If no access modifier is specified for a class, it is considered ____________

Options
- Public
- Private
- Friend
- Protected


CORRECT ANSWER : Public

Discussion Board
answer is right

the given answer is right. By default classes are public or internal but the member of class is private

Adnan 06-24-2015 04:38 AM

If no access modifier is specified for a class, it is considered _____________

The answer is given as Public. Shalem Raju added on 08-06-2014 that the default modifier for a class is Private. According to MSDN the default access for a class is Friend.
http://msdn.microsoft.com/en-us/library/08w05ey2.aspx - "Friend is the default access level of an interface, a module, a class or a structure"

Mary Kaye Rios 09-14-2014 02:03 PM

If no access modifier is specified for a class, it is considered as ?

Answer is given as Public which is wrong. Default Access modifier for a class is Private.

Default Access modifier for Structure is Public.

Thank you

Shalem Raju 08-6-2014 04:19 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement