Computer Science, asked by debashispanda7088, 1 year ago

Write the interface (.h file) of a class contestresult containing: an data member winner of type string, initialized to the empty string. an data member secondplace of type string, initialized to the empty string. an data member thirdplace of type string, initialized to the empty string. a member function called setwinner that has one parameter, whose value it assigns to the data member winner. a member function called setsecondplace that has one parameter, whose value it assigns to the data member secondplace. a member function called setthirdplace that has one parameter, whose value it assigns to the data member thirdplace. a member function called getwinner that has no parameters and that returns the value of the data member winner. a member function called getsecondplace that has no parameters and that returns the value of the data member secondplace. a member function called getthirdplace that has no parameters and that returns the value of the data member thirdplace.

Answers

Answered by Anonymous
6
ANSWER
...........


                   ************************************      class GasTank



{

    private:

        double amount;


        double capacity;





    public:

        GasTank(double);


        void addGas(double);

        void useGas(double);

        bool isEmpty();

        bool isFull();


        double getGasLevel();

        double fillUp();

};
Similar questions