Usage for hash tag: reusing

  1. B

    Share inheritance in java

    ...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
Join Telegram ToolsKiemTrieuDoGroup
Back
Top