hello,
I've been playing around with some examples from a tutorial I'm using to learn c++, and so I made a simple class, dog, that has a constructor looking for 2 arguments.
1 2 3 4 5 6 7 8 9 10 11
class dog {
public:
dog(int age, int weight);
~dog();
void bark() const;
int getAge() const;
int getWeight() const;
private:
int itsAge;
int itsWeight;
};
all the dog constructor does is initialize the two member variables