java class extends clas and abstract class code example Example: abstract class in java public abstract class GraphicObject { abstract void draw(); }