Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

object vs class c#

// Class: 
1. A class is a template for creating objects in program.
2. A class is a logical entity
3. A class does not allocate memory space when it is created.
4. You can declare class only once.
5. Class generates objects

// objects; 
1. The object is an instance of a class.
2. Object is a physical entity
3. Object allocates memory space whenever they are created.
4. You can create more than one object using a class.
5. Objects provide life to the class.  
Source by www.guru99.com #
 
PREVIOUS NEXT
Tagged: #object #class
ADD COMMENT
Topic
Name
5+7 =