Question: a) In a constructor of a derived class, how do you call the parent's constructor? (2 marks) b) Given: class Feline { public String type

a) In a constructor of a derived class, how do you call the parent's constructor? (2 marks) b) Given: class Feline { public String type -"f": public Feline) \ System.out.print feline ") public class Cougar extends Feline { public Cougar0 superO System.out.print("cougar") public static void main(String[] args) new Cougar0 3) What is the result? A) cougar B) cougar cf C) feline cougar c c D) feline cougar E) Compilation fails F) An exception is thrown at run time (4 marks)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
