/*
 * @topic T11343 Spring 2016 Inheritance Demo
 * @brief class Component encapsulates properties of a rectangular shape
*/
package inheritance_demo;

public class Component
{
    //--------------------------------------
    // data attributes
    //--------------------------------------
    private int topx;
    private int topy;
    private int width;
    private int height;

    //--------------------------------------
    // constructors
    //--------------------------------------
    public Component( int width, int height) {
        this.topx = 0;
        this.topy = 0;
        this.width = width;
        this.height = height;
   }//Component
    
    public Component(int topx, int topy, int width, int height) {
        this.topx = topx;
        this.topy = topy;
        this.width = width;
        this.height = height;
    }//Component

}//class Component