abstract class with abstract methid in java code example Example: abstract class in java public abstract class GraphicObject { abstract void draw(); }