...static void main(String[] args) {
Animal animal = new Animal();
Dog dog = new Dog();
animal.speak(); // prints "Animal speaking"
dog.speak(); // prints "Dog barking"
}
}
```
### Hashtags
* #Inheritance
* #Java
* #object-oriented-programming
* #polymorphism
* #reusing-code