C# Fundamentals
# C# Fundamentals
1. What is the purpose of a namespace?
2. What is the difference between a class and a struct?
3. What is the method that returns an instance of a class, yet it has no return type?
# Example 1
abstract class Car
{
...
public virtual string Start()
{
return "Vroooom";
}
}
2
3
4
5
6
7
8
5. In the example what is the access modifier of the Start() method?
6. In the example what is string an indication of?
7. In the example what is abstract preventing?
8. In the example what is the purpose of virtual?
9. Name four access modifiers:
10. If you set a class or method to private, what can access it?