C# Fundamentals

... Less than 1 minute

# C# Fundamentals

1. What is the purpose of a namespace?


1

2. What is the difference between a class and a struct?


1

3. What is the method that returns an instance of a class, yet it has no return type?


1

# Example 1

abstract class Car
{
  ...
  public virtual string Start()
  {
    return "Vroooom";
  }
}
1
2
3
4
5
6
7
8

5. In the example what is the access modifier of the Start() method?


1

6. In the example what is string an indication of?


1

7. In the example what is abstract preventing?


1

8. In the example what is the purpose of virtual?


1

9. Name four access modifiers:


1

10. If you set a class or method to private, what can access it?


1