class Animal{ void run() { } } class Dog extends Animal { void bark() { } } class Testing{ public static void main(String[] args) { Animal d
You can use explicit cast to call it
((Dog)d).bark();