Need help writing a java pet class with these conditions!?
Write the Pet, Dog and Snake classes as follows to support the Pets client class. Pet Instance variable(s): a name of type String Constructor(s): a 1-arg constructor to initialize name Accessor method(s): return name toString method: return “pet “ followed by the name of the pet Dog extends Pet Additional instance variable(s): a weight of … Read more