Course Hero Logo

OnCampusStudent.java - package Project2; /* * CLASS:...

Course Hero uses AI to attempt to automatically extract content from documents to surface to you and others so you can study better, e.g., in search results, to enrich docs, and more. This preview shows page 1 - 2 out of 2 pages.

package Project2;/*** CLASS: OnCampusStudent (OnCampusStudent.java)** DESCRIPTION: Subclass OnCampusStudent** COURSE AND PROJECT INFO* CSE205 Object Oriented Programming and Data Structures*/public class OnCampusStudent extends Student {//Create Instance variablespublic static int RESIDENT = 1;public static int NON_RESIDENT = 2;private int mResident;private double mProgramFee;//Constructor which calls on superclass Studentpublic OnCampusStudent(String pId, String pFirstName, String pLastName) {super(pId, pFirstName, pLastName);}//Calculates tuition for OnCampusStudent@Overridepublic void calcTuition(){double t;if(getResidency() == RESIDENT){t = TuitionConstants.ONCAMP_RES_BASE;
End of preview. Want to read all 2 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Spring
Professor
Matasu
Tags
Object Oriented Programming, double t, public class OnCampusStudent, public static int RESIDENT

Newly uploaded documents

Show More

Newly uploaded documents

Show More

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture