A class is simply a representation of a type of object, is the template from which individual objects are created. It is composed of three things: a name, attributes, and operations.
The abstract classes provide a common definition of a base class that can be shared by multiple derived classes. The sealed classes, on the other hand, provide complete functionality but cannot be used as base classes.
The abstract classes provide a common definition of a base class that can be shared by multiple derived classes. The sealed classes, on the other hand, provide complete functionality but cannot be used as base classes.
An object can be considered a "thing" that can perform a set of related activities. The set of activities that the object performs defines the object's behavior. Objects are self-contained data structures that consist of properties, methods, and events.
The following images explain the object-class relation. The Car class contains attributes and methods. You can create unlimited objects from the Car class.
Click to enlarge.
