Close
Close

create the program according to the following requirements. a. create base class called Shoe that stores the brand of shoe as string and size of the s

   robe

create the program according to the following requirements. a. create base class called Shoe that stores the brand of shoe as string and size of the shoe as a double. Create a constructor for the variable and also creates class methods for the variables. b . create one subclass to shoe that is called walking, this subclass shall have a Boolean instance variable called GoreTex. The constructor shall set the GoreTex variable from a parameter value. The instance variable shall be declared public. The constructor shall also take parameters necessary to call constructor of superclass. c. create a second subclass to shoe called Running. This class shall work exactly like walking subclass but the instance variable shall be named weight and be a double(private). d. create another class called Main, that has main method inside it. create three pair of shoes in the main method, two pairs of walking shoes and one pair of running shoes.


Answers

  •    None of your business None of your business , None of your business

    Something like this: 


    public class Shoe {

    string brand; 

    int size; 

    public Shoe(string _brand, int size){

    this.brand = _brand; 

    this.size = _size;

    }

    }



Ask Yours
Post Yours
Write your answer