Mid OOP

What are instance vs static members in a class?

  • Instance members → Belong to each object, require object to access.
  • Static members → Belong to the class itself, shared by all objects.

public class Car

public string Model; // Instance

public static int Count; // Static

More from C# Programming Tutorial

All questions for this course