Write an application named UseChildren that creates and displays at least two Child objects—one Male and one Female. Child is an abstract class and Male and Female are subclasses. The Child class contains fields that hold the name, gender, and age of a child. The Child class constructor requires a name and a gender. The Child class also contains two abstract methods named setAge() and display (). The Male and Female subclass constructors require only a name; they pass the name and appropriate gender to the Child. The subclass constructors also prompt the user for an age using the setAge ( ) method, and then display the Child's data using the display() method. Save the files as Child.java, Male.java, Female.java, and UseChildren.java.
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.