0
meaning of this code
Dog d = new Dog();
1 Odpowiedź
0
Declare a variable <d>, this variable will be an instance of class `Dog`. Once memory is allocated (in heap), the `new` operator invokes the `Dog` class constructor in order to initialize the instance.
P.S. I believe it is covered in lesson, maybe explain which part of it exactly that you didn't understand?
Hth, cmiiw