Pets

Report a typo

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 program in Kotlin
// write the Pet class here
___

Create a free account to access the full topic