answersLogoWhite

0


Best Answer

Declaration of the object involves only creating the reference variable to the object. Example: class SampleClass{ } Object Declaration: SampleClass obj1; Object Creation: Creating an object involves use of new keyword and actually allocating memory for that object. SampleClass obj2 = new SampleClass ();

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Difference between object declaration and object creation?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the difference between initialize of elements in a class with the use of constructor and without use of it?

when initializing a class elements by using constructor it will assigned to the elements when object creation is going on. by using other ways the elements will be initialize with default values when object creation


What is the difference between an object's speed and a object's velocity?

The difference between an object's speed and an object's velocity is that the object's speed is how fast it is going, and the object's velocity is how many units of speed the object has traveled.


What is the difference between a form file object and a windows form object?

difference between a form file and a form.


What is differences between tags and attribute?

A tag is a declaration of a HTML object whereas an Attribute is a property of an object.


What is the difference between force and tension?

[object Object]


difference between tripitaka and jataka?

[object Object]


What is the difference between direct object and object?

a direct object is your mum


What is the difference between nature miracles and healing miracles?

What is the difference between nature miracle and healing miracle


What is the difference between Estate Management and Business Management?

What are the difference between estate management and business management


What is the difference between geometric and stylized design?

[object Object]


what is the biggest difference between soot and diamond?

[object Object]


What is the difference between 25 and -13?

38