Menu

[Solved]Create Java Class Outcome Would Come Undergraduate Stu Student Per Person Make Classes Per Q37253989

create java class

the outcome would be come out as this:

Under is undergraduate

Stu is Student

Per is Person

so I have to make classes for person, student, undergraduate andcheck

class Person {
//create code
}

class Undergraduate extends Person {
create code
}

class Student extends Undergraduate {
//create code
}

class Check {
//createcode
}

class Main {
public static void main(String[] args) {
Person p = new Person(“Per”);
       Student s = new Student(“Stu”,”1234″);
       Undergraduate u = newUndergraduate(“Under”, “5678”, 2);
      
       Check.whatPerson(u);
       Check.whatPerson(s);
       Check.whatPerson(p);
}
}

Expert Answer


Answer to create java class the outcome would be come out as this: Under is undergraduate Stu is Student Per is Person so I have t… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *