Home > Back-end >  C about new constructor defined
C about new constructor defined

Time:10-19

The teacher said with a new constructed a constructor is what mean?

CodePudding user response:

With the new constructed a constructor? This is not science,
Create an instance of a class, using new will automatically call the corresponding constructor,

CodePudding user response:

Your teacher is also a cheat to eat cheat drink

CodePudding user response:

If you have a problem statement if you have a problem of teacher speak if it weren't for you listen to of have a problem

CodePudding user response:

T * p=new T ();
New instance objects that are used to create a class T, automatically calls the constructor of the class T
  • Related