Java, Programming, Coding, Development, Object Oriented.
void main(String[] args) { Dog myDog = new Dog(); myDog.makeSound(); } } In this example: Animal is an abstract class with an abstract method makeSound(). Dog is a concrete class that extends Animal and provides an implementation for makeSound(). An attempt is made to mark the abstract method