What is a class in C#?

Experience Level: Junior
Tags: C#

Answer

  • C# is object oriented programming language. The logic of the program is is encapsulated into objects. Different objects can have different properties and behavior.
  • A class is like a blueprint of specific object. It defines what kind of data and the functionality the object will have.
  • A program can have many classes based on which the objects are created.
  • A class is like a recipe based on which you can cook an object.

Comments

No Comments Yet.
Be the first to tell us what you think.
C# for beginners
C# for beginners

Are you learning C# ? Try our test we designed to help you progress faster.

Test yourself