What is an Object?

Technology CommunityCategory: C#What is an Object?
VietMX Staff asked 3 years ago

According to MSDN, “a class or struct definition is like a blueprint that specifies what the type can do. An object is basically a block of memory that has been allocated and configured according to the blueprint. A program may create many objects of the same class. Objects are also called instances, and they can be stored in either a named variable or in an array or collection. Client code is the code that uses these variables to call the methods and access the public properties of the object. In an object-oriented language such as C#, a typical program consists of multiple objects interacting dynamically”.

Objects helps us to access the member of a class or struct either they can be fields, methods or properties, by using the dot.