dotnetspider.com
Login Login    Register      

TutorialsForumCareer DevelopmentResourcesReviewsJobsInterviewCommunitiesProjectsTraining

Subscribe to Subscribers
Talk to Webmaster
Tony John

Facebook
Google+
Twitter
LinkedIn
Online Membersnaveensanagasetti
More...
Join our online Google+ community for Bloggers, Content Writers and Webmasters




Forums » .NET » .NET »

Instance vs object


Posted Date: 27 Nov 2009      Posted By:: Ali     Member Level: Gold    Member Rank: 582     Points: 1   Responses: 2



I really confused in the actual difference between instance and object. I searched a lot of over the difference between instance and object, but I couldn't find any relevant answer.
What is the difference between the instance & object with example.




Responses

#448017    Author: Asheej T K        Member Level: Diamond      Member Rank: 2     Date: 27/Nov/2009   Rating: 2 out of 52 out of 5     Points: 2

Instance is an individual object of a certain class.

While a class is just the type definition, an actual usage of a class is called "instance".

Each instance of a class can have different values for its instance variables.

When we create object from a class, it is created on stack or on heap. The existance of an object in memory (stack or heap) is called instance of an object.

I hope this will clear your doubts.


Regards,
Asheej T K
Microsoft MVP[ASP.NET/IIS]
DotNetSpider MVM

Dotnet Galaxy



 
#448173    Author: Pandu (srini)      Member Level: Gold      Member Rank: 465     Date: 29/Nov/2009   Rating: 2 out of 52 out of 5     Points: 2

HI,
The above article is Good,

Thanks & Regards
Srinivas Kanteti
Dot Net Programmer



 
Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.



Next : How to fetch Email from smtp(port 587) ?
Previous : Function overloading vs method overloading
Return to Discussion Forum
Post New Message
Category:

Related Messages



Follow us on Twitter: https://twitter.com/dotnetspider

Active Members
TodayLast 7 Daysmore...

Awards & Gifts
Email subscription
  • .NET Jobs
  • .NET Articles
  • .NET Forums
  • Articles Rss Feeds
    Forum Rss Feeds


    About Us    Contact Us    Copyright    Privacy Policy    Terms Of Use    Revenue Sharing sites   Advertise   Talk to Tony John
    Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
    2005 - 2012 All Rights Reserved.
    .NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
    Articles, tutorials and all other content offered here is for educational purpose only.
    We are not associated with Microsoft or its partners.