This application only needs to function to give the desired results at the bottom so it doesn't have to be perfect for reuse.
Java application will contain three classes: Dog, its subclass Puppy, and a standalone application class DogTest. The attributes of a Dog object are: weight, gender, and name.
Class Puppy inherits these attributes (i.e. they are visible from this subclass) and has two extra class instance variables, mom and dad, both being instances of Dog. The puppy's default name is a concatenation of the names of its parents.
Class Dog has a constructor with two parameters: gender and name. If the gender is male, it sets weight 12; for the female gender the default weight is 9. The default weight of a puppy is 1.
the constructor in class Puppy does not allow same-sex parents
must be able to reproduce these results
Enter male dog's name: Rex
Rex the dog has gender: m
its weight is 12.0
Enter female dog's name: Alma
Alma the dog has gender: f
its weight is 9.0
Creating a puppy...
Puppys' default name: Alma-Rex
Puppys weight: 1.0
Puppys gender: unknown
Enter puppy's name: Snoopy
New puppys name: Snoopy
Enter one more male dogs name: Romul
Attempting to create a puppy with both male parents...
Creating a puppy...
Error: no same-sex parents!
===Testing Done===