Q:

What is a class in c#?

0

What is a class in c#?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Solution:
A class describes all attributes of objects as well as the method that implements the behavior of member object. Basically, it represents a blue print of object. It is a template of an object. A class contains data & behavior of an entity.
Example: Aircraft.
Data: Model number of aircraft, Color of aircraft, category of aircraft etc.
Behavior/Method: Duration of flight, number of passengers etc.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Top 100 C# interview questions and answers 2022

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What is an object?... >>
<< What are the types of comment in C# with examples?...