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
@jimmykurian
jimmykurian / Instructor.java
Created March 13, 2012 05:27
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;