INHERITANCE AND POLYMORPHISM Write a Java program to create a class called Animal with a method called makeSound(). Create a subclass called Cat that overrides the makeSound() method to bark.
PACKAGES Create a Java program to access the java.util.Date class through import keyword and print the current date of the system but inherit the Date class.
PACKAGES Create a Java program to access the java.util.Date class through qualified way and print the current date of the system but inherit the Date class.
INHERITANCE AND POLYMORPHISM . Write a Java program to create a class called Vehicle with a method called drive(). Create a subclass called Car that overrides the drive() method to print “Repairing a car”.
PACKAGES Create a Java program to access the java.util.Date class through import keyword and print the current date of the system.