Class :

A class is a data structure that may contain data members (constants and fields), function members (methods, properties, events, indexers, operators, instance constructors, finalizers, and static constructors), and nested types. Class types support inheritance, a mechanism whereby a derived class can extend and specialize a base class.

Objects :

Creating the object of a defined class is called instantiation (creating). The instance is the object itself.

The attributes

of the class are defined as its own

variables in its body (called member variables).

The behavior

of objects is modeled by the definition of methods in classes

Class in C# :

Fields :

Properties :

Methods :

Static Field & Method :

The different between stack and heap