Write the interface (.h file) of a class GasTank containing:

C++

LANGUAGE: C++ CHALLENGE: Write the interface (.h file) of a class GasTank containing: A data member named  amount of type double. A data member named  capacity of type double. A constructor that accepts a parameter of type double. A function named  addGas that accepts a parameter of type double and returns no value. A function named …

Read More