Vehicle 이란 superclass가 있고

Car이란 subclass가 있는데


Vehicle v1 = new Vehicle();

Vehicle v2 = new Car();


두가지 경우가 있다해요


1. Vehicle class has a method named drive. 

    Car class also has a method named drive (overwritten)

    그럼 v1.drive 하면 vehicle class에 있는 드라이브를 call 하는거고

           v2.drive  하면 Car class에 있는 드라이브가 call 되는건가요?


2. Only vehicle class has a method named drive.

     이때는 v1.drive 랑 v2.drive 모두 Vehicle class에 있는 drive를 call 하나요


3. Only car class has a method named drive

      이때 v1.drive하면 에러나나요?

       v2.drive는?


자바 영어로 쳐배워서 한글로 잘 못적겠음 이해좀,,