Challenger App

No.1 PSC Learning App

1M+ Downloads

Which of the following statement is/are NOT correct about the access modifier in Visual Basic .NET?


(i) Protected access modifier applies to class members only.

(ii) Public access modifier defines a type that is accessible only from within its own class or from a derived class.

A(i) and (ii) only

B(i) only

C(ii) only

DNone

Answer:

C. (ii) only

Read Explanation:

Access modifiers in Visual Basic .NET are keywords that specify how a programming element can be accessed or how it will behave in a program. Some examples of access modifiers in Visual Basic .NET include : 

  • Public
    This modifier specifies that a programming element can be accessed from anywhere in the same project, from other projects that reference the project, and from any assembly built from the project. 
  • Protected
    This modifier specifies that a programming element can only be accessed from within the same class, or from a class derived from that class. 
  • Private
    This modifier specifies that a programming element is limited to the containing type. 


The default access modifiers for type members in Visual Basic are: 

  • Fields and constants: Private 
  • Methods: Public 
  • Structures: Public



Related Questions:

The protocol used for retrieving email from a mail server is :
Methods of Malware identification used to by antivirus not includes :
Programs stored in ROM are called

ഇനിപ്പറയുന്നവയിൽ ഏതാണ് ശരി ?

  1. അയച്ചതും എന്നാൽ ഡെലിവർ ചെയ്യാത്തതുമായ ഇമെയിലുകളാണ് ഡ്രാഫ്റ്റുകൾ.
  2. ബിസിസി എന്നാൽ ബ്ലൈൻഡ് കാർബൺ കോപ്പി എന്നാണ്.
  3. ഒരു ഇമെയിലിന് ഡോക്യുമെന്റുകളും ചിത്രങ്ങളും പോലെ ഒന്നിലധികം അറ്റാച്ച്മെന്റുകൾ ഉണ്ടാകാം.
    Which type of network is used to connect multiple networks over large geographical areas, such as countries or continents?