C# Concepts

  1. What is the IDE?
    IDE means Integrated Development Environment. It's your constant companion while working with C#. It helps with getting to write code in an efficient fashion.
  2. What is the CLR?
    Common Language Runtime is the virtual machine component responsible for managing the execution of .NET programs.
  3. What is CLS? CTS?
    Common Language Specification and Common Type System. CLS is the core of .NET while CTS is a set of data types. CLS and CTS are like the rules and guidelines.
  4. What are access modifiers?
    Keywords you place before a property, field or method to change the way other classes can access them. Keywords include public, private, protected, sealed, etc.
  5. What does it mean when something is public?
    It means anyone can access the indicated field, property, method or class.
  6. What does it mean when something is private?
    It means that only other members can access it.
  7. What does it mean when something is protected?
    Public to subclasses, private to everyone else.
  8. What is for?
    It's a loop that takes three arguments. The first declares and initializes a variable, the second evaluates against a condition and the third does something to the value.
  9. What is a namespace?
    Namespaces contain classes and methods. They make sure names in your program don't collide with others.
  10. What is using for at the top of a program?
    Using lets your program use code from the .NET framework and other predefined classes.
  11. What is overloading and overriding?
    Overloading is when you have multiple methods with the same name but different signatures. Overriding is used to extend or modify the abstract or virtual implementation of an inherited method, property, indexer or event.
  12. What is the GAC?
    Global Assembly Cache. It stores assemblies specifically designated to be shared by several applications on the computer.
  13. What is a using block/structure?
    It's a block of code that's used for garbage collection that implements IDisposable.
  14. What is an interface?
    A type of class that can support multiple inheritance. It must have 'I' before the name and classes using an interface must implement methods and properties.
  15. What is encapsulation?
    Creating an object that keeps track of its state internally using private fields and uses public properties and methods that allow other classes to work with only part of the internal data.
  16. What is polymorphism?
    When an object takes on many forms through upcasting and downcasting.
  17. What is upcasting and downcasting?
    Upcasting is when you substitute a subclass for a base class. It works with objects and interfaces. Downcasting is when you take your previously upcasted reference and change it back.
  18. What are get and set?
    Get reads information while set writes information.
  19. What is a struct?
    A struct is a value type used to encapsulate small groups of related variables.
Card Set
C# Concepts
Keywords and aspects to C#