Question: Write a program to make a class called parent that has the following features: surname (String) and show method that shows surname. The program

Write a program to make a class called parent that has the

Write a program to make a class called parent that has the following features: surname (String) and show method that shows surname. The program also makes a class called child that has the following feature: firstname (string), degree (string), and show method that shows firstname and degree. A test is class is required to allow a user to enter his/her names and degree.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Here is the Java program with the Parent and Child classes along with a Test class to allow the user ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!