vendredi 3 avril 2020

What is the difference between 2 objects (pointers, c++)

I'm wondering what is the difference between these two lines:

Cat* myCat = new Cat();    // 1
Cat yourCat = new Cat();   // 2

Aucun commentaire:

Enregistrer un commentaire