If a class has an abstract method, then that class must be declared abstract. code example
Example: abstract class in java
public abstract class GraphicObject {
abstract void draw();
}
public abstract class GraphicObject {
abstract void draw();
}