package Class;

public class main {
    public static void main(String[] args) {

        // part here is accesing  abstrract and its concreate class.
        Cat obj = new Cat();
        obj.makeSound();
        obj.eat(); // its not cat class function but as cat is inheriting animal so it can access animal class method as well.

        // interface implementation.

        Car alto =  new Car();
        alto.playMusic();
        alto.stopMusic();
        alto.startCar();
        alto.stopCar();

    }
}