/*
 	extends
	super()
	private fields / methods
	final on class / method
	@Override
	final on method
*/

class Nov16 {

	public static void main(String[] args) {
		
		A a1 = new A();
		B b1 = new B(10);

		//System.out.println(a1.i);     // Cannot access - i is private in class A
		System.out.println(b1.j);	

		a1.printI();  // call A's printI() method
		b1.printI();  // call B's printI() method (it is overridden in class B)

		B b2 = new B(11,19);
		b2.printI();
		b2.printJ();

		b2.printYo();       // call A's printYo() method
		b2.printYo("joe");  // call B's printYo() method

		System.out.println(a1.toString());
	}
}
