Given a class Pet as started in the following example, add two constructors—one to create pets with a name, the other to create pets with a name and an age.
class Pet
{
private String name;
private int age;
// add constructors here
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.