Question: JAVA PROGRAMMING: Look at the following code and then answer the questions from Q3 to QS Person. public abstract class Person protected String person nane
Look at the following code and then answer the questions from Q3 to QS Person. public abstract class Person protected String person nane protected int age private String city public Person) System.out.printin( Constructor of Person class public void set name(String nane) ( public String get ane) C public veid set age(int .age) agepace public int get age) retura age public veid ny nethod) [ System.out.printin(I need te focus during the exan) public abstract vold disolay Infornation) public abstract void do _something) /Eployee java public class Esployee extends Person( private long enployee_id 533233 pubiic Enployee() Systes.out-printin( Constructor of Employee class) public veld set id(long id) enployee, id-id public long get 14 0 reture esplayee,id Override public veld display information) Systes.out.printin( Age:age): System.out.printin ID:enployee ) public vold do sonething) ( System.out.printin(I an an Enployee)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
