Course Solutions Uncategorized (Solved) : Constructor Derived Class Call Parent S Constructor 2 Marks B Given Class Feline Public St Q34204475 . . . .

(Solved) : Constructor Derived Class Call Parent S Constructor 2 Marks B Given Class Feline Public St Q34204475 . . . .

 

a) In a constructor of a derived class, how do you call the parents 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)

a) In a constructor of a derived class, how do you call the parent’s constructor? (2 marks)

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post