/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.polymorphism;
/**
*
* @author farid
*/
public class BoxDemo {
public static void main(String[] args) {
Box x;
Box b1 = new Box ();
WoddenBox wb = new WoddenBox();
SteelBox s1 = new SteelBox();
LargeWoddenBox p1 = new LargeWoddenBox();
b1.info();
wb.info();
s1.info();
p1.info();
}
}