C++ terminology and plain English instructions phrasing

Good evening!

I'm a beginner programmer and am finishing up my first semester of C++. Currently I'm looking a final exam review sheet my professor gave us and I just don't understand exactly what it's asking me to do. I feel like if I saw an example I would get it immediately but as is I am rather lost.

Here's the review question.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Problem: Given the following class definition, implement the class methods. 

class CreditCard {
  public:
    CreditCard(string & no, string & nm, int lim, double bal = 0);
    string getNumber();
    string getName();
    double getBalance();
    int getLimit();
    // Does the card have enough to buy something?
    bool chargelt(double price); 
  private:
    string number;
    string name;
    int limit;
    double balance;
}; 


I know there isn't much context here, but let's just say in the context of this being a introductory C++ course, what is likely asking me to do/learn? I'm really not sure what "implement the class methods" means here, and while it may be something that I've seen already, more than likely it's just an issue I have with not understanding it in plain English.

And I suppose it can also be asked that: If you were to teach an beginner student with this code, what would you expect them to do with it or learn from it?

Any insight would be greatly appreciated =)
Hi,

Implement means to write the code for the functions, that is the function definitions.

So your prof wants you to write the constructor and all the other functions in the class.

Most of them should be pretty easy - the get functions should be trivial.

Good Luck !!
Ah I see, I'll look over it again and think about that, thanks!
Topic archived. No new replies allowed.