Java Inheritance Program paper

timer Asked: May 7th, 2014

Question description

I don't have time to write this...need help. 

  1. Write a parent class that is called Student – at a minimum this class should have private variables for year and motto (including corresponding get and set methods) and a public method called dipslayMotto. The method displayMotto should return the String variable that describes a student's outlook/philosophy on their education. You should decide what other variables and methods should be included – implement at least one other. All variables and methods should be class or instance depending on their use – use good design principles (e.g. don't specify a variable at the instance level if it will be the same for all instances, provide accessor/mutator methods for private variables, decide how variables should be inherited or not, etc.)

    Create at least 4 children classes (Freshman, Sophomore, Junior, Senior). Each child class should set its appropriate year in school and have its own “motto.”

    Write a driver/test program that tests the functionality of the children and parent classes. 

Tutor Answer

(Top Tutor) Studypool Tutor
School: University of Maryland
Studypool has helped 1,244,100 students
flag Report DMCA
Similar Questions
Hot Questions
Related Tags

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors