[solved]-Class Aggregate Incorrect Choose Correct Line Program Prints Granite Weight 250 Value 4 Nu Q39049114
class Aggregate is incorrect. Choose the correct line so that this program prints Granite: weight-25.0 value-4 numKind-7 public class Inherit abstract class Stone protected float weight – 13; protected int value = 4; abstract public String toString(): dass Aggregate protected int numKind; class Granite extends Aggregate Granitel) weight – 25; numKind -7; public String toString() retum “Granite: weight=” + weight + “value” + value + numKind” + numKind Inherit) Granite 8-new Granite(); System.out.println(g): public static void main(Stringl) args) new Inherit(): O abstract das Angregate edends Granite O dass Agregate extendis Stone abstract das Angregate O abstract dass Aggregate adds Stone none of the above Show transcribed image text class Aggregate is incorrect. Choose the correct line so that this program prints Granite: weight-25.0 value-4 numKind-7 public class Inherit abstract class Stone protected float weight – 13; protected int value = 4; abstract public String toString(): dass Aggregate protected int numKind; class Granite extends Aggregate Granitel) weight – 25; numKind -7; public String toString() retum “Granite: weight=” + weight + “value” + value + numKind” + numKind Inherit) Granite 8-new Granite(); System.out.println(g): public static void main(Stringl) args) new Inherit(): O abstract das Angregate edends Granite O dass Agregate extendis Stone abstract das Angregate O abstract dass Aggregate adds Stone none of the above
Expert Answer
Answer to class Aggregate is incorrect. Choose the correct line so that this program prints Granite: weight-25.0 value-4 numKind-7… . . .
OR

