Create an Object in OOP | C++ :
- Create an object of a class like a variable creation of some basic data type.
- Object is created in two places of program-
class book
{
Body of
book;
} b1, b2, b3
; // declaration of objects
|
(2) In main program.
class book
{
Body of
book;
};
int main()
{
book b1,
b2, b3 ; // objects of class
book
} |
0 Comments
If you have any suggestion or doubt, please ask me.
Emoji