Class:
Object
Class Vs Object
- Blue Print (set of instruction to build a specific type of object) or prototype that defines the variables and the methods (functions) common to all objects of a certain kind.
- Class is just logical representation.
- Not stored in any memory.
Object
- Instance of class.
- Physical representation of the class.
- Block of memory that has been allocated.
- Stored in memory (i.e variables present in class).
- Helps us to access the member of a class or struct either they can be fields, methods or properties
- A program may create many objects of the same class.
- Consists of methods and properties to make a particular type of data useful
Class Vs Object
- Class is a template from which objects are created.
- Object determines the behavior of the class.
- Class is an entity that determines how an object will behave and what the object will contain.
No comments:
Post a Comment
This is a User Friendly Blog.
Simple Interface and Simple Controls are used.
Post your comments so i can modify blog regarding your wish.