Untitled

 avatar
unknown
plain_text
4 years ago
469 B
4
Indexable
#ifndef ITEMTYPE_H
#define ITEMTYPE_H

using namespace std;

enum Comparison {GREATER, LESS, EQUAL};

class ItemType {
private:
    int value;
public:
    ItemType(); // constructor
    Comparison compareTo(ItemType item); // Compare the value of item with the current object's value and return GREATER, LESS or EQUAL
    int getValue() const; // Return the value instance variable
    void initialize(int num); // Initializes the data member by variable num
};

#endif
Editor is loading...