Ad Code

What is object instantiation?

What is object instantiation? and how can we instantiate it?


A class is a blueprint for an object.What this basically means is that we provide a blueprint,or an outline of an object. This blueprint is valid whether we have one or one thousand such objects. A class represent an object; it represents all the information a typical object should have as well as all the methods it should have.

All we have done so far is to create a class, i.e. a specification for our object; we have not created our object yet. To create an object that simulates a class in C++ then, all we have to do is declare in our main program instantiation for memory allocation.
Reactions

Post a Comment

0 Comments