Search Interview Questions | ![]() ![]() Click here and help us by providing the answer. ![]() Click Correct / Improve and please let us know. |
|
| ||||
Interview Questions and Answers | ||||
| ||||
Ans. Interfacing Car extends Vehicle Car car = new Car(); // now you need to call an API changeTires() which can change tires for all Vehicle Types and accepts argument of type Vehicle and hence you will have to upcast it changeTires((Vehicle)car); | ||||
![]() | ||||
![]() ![]() ![]() | ||||
![]() | ||||