1. Engineering
  2. Computer Science
  3. a in a constructor of a derived class how do...

Question: a in a constructor of a derived class how do...

Question details

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)

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution