Exercise 2 - Instances

1 Question

What is an instance?


1.1

An instance of a class is an object created by instantiation of the class.


2 Creating Instances


Create an instance of the class Dog.



Create another instance and give the dog the name "Tim".



2.1



2.1.1 Simulation of Dog and DogTim