RSS Forums RSS
Please support our C++ advertiser: Programming Forums
Views: 746 | Replies: 3
Reply
Join Date: Oct 2007
Posts: 25
Reputation: navi17 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
navi17 navi17 is offline Offline
Light Poster

Diff b/w object and instance?

  #1  
Dec 21st, 2007
is there any difference b/w object and instance?
pls tel me in detail?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Oct 2006
Location: India
Posts: 514
Reputation: Jishnu will become famous soon enough Jishnu will become famous soon enough 
Rep Power: 5
Solved Threads: 25
Jishnu's Avatar
Jishnu Jishnu is offline Offline
Posting Pro

Re: Diff b/w object and instance?

  #2  
Dec 21st, 2007
When we create object from a class, it is created on stack or heap. The existence of an object in memory (stack or heap) is called instance of an object. These are interchangeably used.
"You know you're a computer geek when you try to shoo a fly away from the monitor screen with your cursor. That just happened to me. It was scary." - Juuso Heimonen.

"The only truly secure computer is one buried in concrete, with the power turned off and the network cable cut." - Anonymous.
Reply With Quote  
Join Date: Mar 2006
Location: Bangalore, India
Posts: 167
Reputation: dubeyprateek is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 22
dubeyprateek's Avatar
dubeyprateek dubeyprateek is offline Offline
Junior Poster

Re: Diff b/w object and instance?

  #3  
Dec 21st, 2007
When we create object from a class, it is created on stack or heap.

It is created in stack (in C++ unlike C#)until and unles you go for dynamic creation.
I know I am. Therefore I am.
Reply With Quote  
Join Date: Oct 2006
Location: India
Posts: 514
Reputation: Jishnu will become famous soon enough Jishnu will become famous soon enough 
Rep Power: 5
Solved Threads: 25
Jishnu's Avatar
Jishnu Jishnu is offline Offline
Posting Pro

Re: Diff b/w object and instance?

  #4  
Dec 21st, 2007
I didn't say that we don't create objects dynamically . Anyway, this is not something the OP is interested in.
"You know you're a computer geek when you try to shoo a fly away from the monitor screen with your cursor. That just happened to me. It was scary." - Juuso Heimonen.

"The only truly secure computer is one buried in concrete, with the power turned off and the network cable cut." - Anonymous.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 1:55 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC