Skip to content

Instantly share code, notes, and snippets.

Avatar
🤒
Out sick

Hassan Shahzad Aheer hassanshahzadaheer

🤒
Out sick
View GitHub Profile
@hassanshahzadaheer
hassanshahzadaheer / Instructor.java
Created Jun 13, 2016 — forked from jimmykurian/Instructor.java
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.
View Instructor.java
//Instructor.java - Jimmy Kurian
public class Instructor extends Person
{
private double salary;
public Instructor(String n, int byear, double s)
{
super(n, byear);
salary = s;
You can’t perform that action at this time.