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;
6 Cards in this Set
- Front
- Back
What accessibility modifiers can be applied to classes and structs? |
Public or internal |
|
What accessibility modifiers can be applied to members of classes? Members of structs? structs? |
Classes: public, internal, private, protected, protected-internal Structs: public, internal, private |
|
If you're creating a constructor in a derived class, what does the constructor needs to look like? |
public ClassName(param1, param2, etc..) : base(param, param, etc...) |
|
what is the difference between var and dynamic? |
var is statically typed, and determined at compile time, and need to be initialized when declared (so the compiler can infer)
|
|
What is static used for |
To declare classwide information. All objects of the class share the same piece of data. |
|
If a variable is declared readonly, how is it possible to assign it a value at runtime?
When/why would you use a readonly? |
The constructor is allowed to alter the value of a readonly variable. And that's it.
Use a a readonly variable to set a value specific to that particular instance of an object |