abstract class AirPlane { // line 1 abstract void fly(); // line 2 void land() { System.out.print("Landing.."); } } class AirJet extends AirPlane { // line 10 AirJet() { super(); // line 13 } void fly() { System.out.print("Flying.."); } abstract void land() ; // line 20 }
abstract void fly(); // line 2
void land() {
System.out.print("Landing..");
}
class AirJet extends AirPlane { // line 10
AirJet() {
super(); // line 13
void fly() {
System.out.print("Flying..");
abstract void land() ; // line 20
Oracle Certified Professional Java Programmer
Access: Public Instant Grading
Jobilize.com uses cookies to ensure that you get the best experience. By continuing to use Jobilize.com web-site, you agree to the Terms of Use.