What is the relation between Classes and Objects in .NET?

What is the relation between Classes and Objects?

Class is a group of items, attributes of some entity. Object is any specific item that may or may not be a part of the class. When a class is created, objects for those classes are created.

Example :
We create a Class “Food”. This class has attributes like ‘price’, ‘quantity’. For this food class, we create objects like “Spaghetti”, “Pasta”.
Explain different properties of Object Oriented Systems.
An object oriented system revolves around a Class and objects. A class is used to describe characteristics of any entity of the real world....
What is difference between Association, Aggregation and Inheritance relationships?
An Association is a relationship between similar objects or objects with common structures...
Explain the features of an abstract class in NET.
An Abstract class is only used for inheritance. This means it acts as a base class for its derived classes...
Post your comment