Write a class Pet that has three String properties declared in the primary constructor: name, animal, and owner.
The default value for animal should be "cat".
Write a class Pet that has three String properties declared in the primary constructor: name, animal, and owner.
The default value for animal should be "cat".
Create a free account to access the full topic