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

16y 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 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.


difference between tripitaka and jataka?

[object Object]


What is the difference between force and tension?

[object Object]


What is the difference between nature miracles and healing miracles?

What is the difference between nature miracle and healing miracle


what is the biggest difference between soot and diamond?

[object Object]


What is the difference between geometric and stylized design?

[object Object]


What is the difference between 25 and -13?

38


What is the difference between ''object'' and ''object''?

an object(n) is something you can hold to object (v) is to "not agree with"


What is the difference between roughness and flatness?

The difference between roughness and flatness is that one, flatness, is the shape of an object. Roughness is the surface or texture of an object.


Is there a difference between public liability and third party insurance?

difference between third party liability and public liability