Question: My class C includes the following for a method foo: class C { public: / / other stuff int foo ( int x ) ;

My class C includes the following for a method foo:
class C {
public:
// other stuff
int foo(int x);
// other stuff
};
What does this mean about foo?
Group of answer choices
the body of foo is declared outside of the class
foo is a method from a class other than C
none of these
foo has no body, the function does not do anything
foo produces an error on compiling

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!