1. Engineering
  2. Computer Science
  3. 1 select the correct text in the passage in the...

Question: 1 select the correct text in the passage in the...

Question details

1. Select the correct text in the passage In the following subclass, which line invokes a method from the superclass? public class Triangle extends Shape ( public double base, height; ublic Triangle() super(3); base 0 height0; public Triangle(double b, double h) super(3); baseb; height-h; public double calcArea) area 0.5 base height return area public void showData() super.showDatal:W System.out.printin(The base is + base); System.out.printin(The height is+ height); Select... Select. super(3); (the first one) super(3); (the second one) public double calcArea0 { public void showData0 super.showData0;

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