Create interface Vehicle, add default method testDrive ( ) . Create new class Car, this class implements
Fantastic news! We've Found the answer you've been seeking!
Question:
Create interface Vehicle, add default method testDriveCreate new class Car, this class implements Vehicle interface without any methodCreate new class TestVehicle with main method. In main method, create object of Car and call testDrive method and check output.Add testDrive method in Car class and call testDrive method in main method and check output.
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date: