• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/17

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

17 Cards in this Set

  • Front
  • Back
What is the purpose of the public access modifier?
The object is directly accessible to all other objects and assemblies. Access not limited.
What is the purpose of the private access modifier?
The object is not directly accessible outside of its class.
What is the purpose of the internal access modifier?
The object is not directly accessible outside of its assembly, access limited to this program.
What is the purpose of the protected access modifier?
Using protected access offers an intermediate level of access between public and private. Access is limited to the containing class or types derived from the containing class
What is the purpose of the protected internal access modifier?
A base class's protected internal members can be accessed by members of that base class, by members of its derived classes and by any class in the same assembly.)
What is the purpose fo the virtual accessor?
It allows the derived class to override the base class' member with its own. Example: public Mammal{ virtual string Eat(){ return "Eat";} public Human: Mammal { override string(){return "Human eats food.";}}
Can a namespace have an access modifier?
No, it is implicitly public. It cannot have any declared accessibility types on the namespace declaration.
What declared accessibility can a class member have?
Any of the five declared accessibility kinds, it's default is private.
What declared accessibility types can a struct member have?
Structs can have public, internal or private, but not protected or protected internal.
What declared accessibility types can an interface have?
It is implicitly public. It can only have public or internal access modifiers.
What declared accessibility types can an enumeration have?
It is implicitly public. It cannot have any declared accessibility types on the enumeration declaration.
What does abstract mean?
The class or class member cannot be instantiated. It is incomplete. It is up to the derived class to provide the logic. The abstract class or member just provides the framework. You cannot used the sealed modifier with abstract. Example: sealed abstract class myClass{} will generate an error.
What does sealed mean?
The class or class member can not be inherited or overridden. It provided for some runtime optimization. An example of the optimization is that class is known at compile time, thus at runtime, it shows up without needing to full construct the class.
What does extern mean?
The class or class member are implemented externally to the object's assembly. In a method, typically the method body is just a semicolon. Example: [DllImport(""kernel32"", SetLastError=true)]public static extern bool CrateDirectory(string name, SecurityAttribute sa);
What are some of the override's restrictions?
It is a virtual, abstract, or override method. In other words, the overridden base method cannot be static, abstract or virtual. It cannot be sealed nor static. The derived class or member must have the same return type as in it's base and cannot change the base code's accessibility of the virtual base.
What is the default access for interfaces?
internal.
What access modifier can a delegate have, by default?
internal.