Question: public class Parrots implements Fly { private int code; public Parrots() { code = 1; } } public class Cockatiel extends Parrots{ public Cockatiel() {

 public class Parrots implements Fly { private int code; public Parrots(){ code = 1; } } public class Cockatiel extends Parrots{ public

public class Parrots implements Fly { private int code; public Parrots() { code = 1; } } public class Cockatiel extends Parrots{ public Cockatiel() { code = 2; } } public class Parakeets extends Parrots implements Pet{ public Parakeets() { super(); } } public class FinalExam { public static void main(String[] arr) { Parakeets p = new Parakeets(); Cockatiel C = new Cockatiel(); } } Whch one is not true about the above code? A code of p is equals to 1 (one) B p is an object of Parakeets C code of c is equals to 1(one) D c is an object of Cockatiel public class Parrots implements Fly { private int code; public Parrots() { code = 1; } } public class Cockatiel extends Parrots{ public Cockatiel() { code = 2; } } public class Parakeets extends Parrots implements Pet{ public Parakeets() { super(); } } public class FinalExam { public static void main(String[] arr){ Parakeets p = new Parakeets(); Cockatiel c = new Cockatiel(); } } Whch one is not true about the above code

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!