static method inside class


Provide a public static class method to test a tax rate percentage value passed to it as a parameter. The method will RETurn a bool value, true: The parameter value is valid.

so if I have RestaurantCheck.h and RestaurantCheck.cpp, how do I code it?

class RestaurantCheck
{
// Public Interface
public:
// Class Constructor(s)
RestaurantCheck(float taxrate, float tip);

// Class Destructor
~RestaurantCheck();


// Client Methods

// Private Class Members
private:
// 1. Constant Value Declarations
float taxrate;
float tip;

// 2. Variable Declarations
};
Last edited on
Topic archived. No new replies allowed.