• 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/6

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;

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?
Why the difference?

Classes: public, internal, private, protected, protected-internal


Structs: public, internal, private

Structs cannot be inherited.

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)



dynamic is dynamically typed, and determined at runtime; it doesn't need to be initialized when declared.

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