abstract class Write{ public static void write() { System.out.println("Writing") } } code example Example: how to create an abstract class in java abstract class scratch{ }