Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
which one create object and which on create memory
in this sentence
1. Class obj=new Class()
Class obj= create object
and
New Class()= create memory
is it correct?

2. IClass obj=new class()
which one create object ans which one create memory


3. Mainclass obj =new Derivedclass();
How the object will create and memory management will work
Posted
Updated 7-May-12 20:12pm

1 solution

 
Share this answer
 
Comments
Sandeep Mewara 8-May-12 11:49am    
My 5!
Mohammad A Rahman 8-May-12 19:33pm    
Thank you Sandeep :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900