
class Apr17 {
	public static void main(String[] args) {

		SuperClass s = new SuperClass("joe");

		SubClass sub = new SubClass("123 Main String", "sam");

		System.out.println(s.getName());
		//System.out.println(s.getAddress());  // super class does not have access to address field
	
		System.out.println(sub.getName());
		System.out.println(sub.getNameWithLabel());
		System.out.println(sub.getNameWithLabel("Student: "));
		System.out.println(sub.getAddress());
	}
}
