Question: 1. public class Shoes { private String brand; private double size; public Shoes() { } public Shoes(String brand, double size) { this.brand = brand; this.size

1. public class Shoes { private String brand; private double size; public Shoes() { } public Shoes(String brand, double size) { this.brand = brand; this.size = size; } 
 public void display(){ System.out.println(" you have purchased a shoes"); } } 
public class Walking extends Shoes { private String color; public Walking(String brand, double size, String color) { super(brand, size); this.color = color; } public void display(){ System.out.println(" you have purchased a walking shoes"); } } 

a.extends: [ Choose ] used to to inherit from a class Shoes, derived class, Overriding the parent method, used to invoke the superclass constructor or Super Class

b.super(brand, size): [ Choose ] used to to inherit from a class Shoes, derived class, Overriding the parent method, used to invoke the superclass constructor or Super Class

c. Shoes: [ Choose ]used to to inherit from a class Shoes, derived class, Overriding the parent method, used to invoke the superclass constructor, Super Class

d. Walking: [ Choose ]used to to inherit from a class Shoes, derived class, Overriding the parent method, used to invoke the superclass constructor, Super Class

e. public void display() in the Walking class: [ Choose ] used to to inherit from a class Shoes, derived class, Overriding the parent method , used to invoke the superclass constructor or Super Class

2. public class Shoes {

private String brand;

private double size;

public Shoes() {

}

public Shoes(String brand, double size) {

this.brand = brand;

this.size = size;

}

}

Group of answer choices

a. Overriding: [ Choose ] A constructor that has no parameter, parameterized constructors, done so that a child class can give its own implementation to a method which is already provided by the parent class, It is used inside a sub-class method definition to call a method defined in the super class or default constructor

b. Super: [ Choose ] A constructor that has no parameter, parameterized constructor, is done so that a child class can give its own implementation to a method which is already provided by the parent class, It is used inside a sub-class method definition to call a method defined in the super class or default constructor

c. default constructor: [ Choose ] A constructor that has no parameter, parameterized constructor, is done so that a child class can give its own implementation to a method which is already provided by the parent class, It is used inside a sub-class method definition to call a method defined in the super class or default constructor

d. Shoes(): [ Choose ] A constructor that has no parameter, parameterized constructor, is done so that a child class can give its own implementation to a method which is already provided by the parent class, It is used inside a sub-class method definition to call a method defined in the super class or default constructor

e. Shoes(String brand, double size): [ Choose ] A constructor that has no parameter, parameterized constructor, is done so that a child class can give its own implementation to a method which is already provided by the parent class, It is used inside a sub-class method definition to call a method defined in the super class or default constructor

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!