Skip to content

Instantly share code, notes, and snippets.

View hassanshahzadaheer's full-sized avatar
🕵️‍♂️
Coding Life

Hassan Shahzad Aheer hassanshahzadaheer

🕵️‍♂️
Coding Life
View GitHub Profile
@hassanshahzadaheer
hassanshahzadaheer / Instructor.java
Created June 13, 2016 21:37 — 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.
//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;