Thursday, January 22, 2015

Extending a Class: Inheritance in java pgm



Extending a Class: Inheritance

class Pixel extends Point
{
     Color color;

     public void clear()
{
       super.clear();
       color = null;
  }
}

No comments:

Post a Comment