Have you failed a job interview?
Send us your job interview questions and get correct answers.
What is a class in C#?
Experience Level: Junior
- 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.
Related C# job interview questions
Where does the .NET C# program start its flow when you build and run a console application?C# Junior
What is an object in C#?C# Junior
What are the advantages of using 'using' keyword in C# and why would you use it?C# Junior
What is a namespace in C# and what is it good for?C# Junior
What is abstract class and what is it good for?C# Medior