Skip to content

Instantly share code, notes, and snippets.

Out sick

Hassan Shahzad Aheer hassanshahzadaheer

Out sick
View GitHub Profile
hassanshahzadaheer /
Created Jun 13, 2016 — forked from jimmykurian/
A super class Person with two subclasses, Student and Instructor, that inherit from Person. A person has a name and a year of birth. A student has a major, and an instructor has a salary.
// - Jimmy Kurian
public class Instructor extends Person
private double salary;
public Instructor(String n, int byear, double s)
super(n, byear);
salary = s;