Junior OOP

What is a class in OOP?

  • A blueprint or template for creating objects.
  • Defines properties (data) and methods (behavior) that the objects will have.

public class Car

public string Model { get; set; }

public void Start() { Console.WriteLine("Car started"); }

More from C# Programming Tutorial

All questions for this course