Tech News

What is the difference between Object and Instance?

  • An instance of a user-defined type is called an object. We can instantiate many objects from one class.

  • An object is an instance of a class.
Example:   ClassName Object = new ClassName();
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x