void start();
void accelerate(double speed);
void stop();
double get\_speed() const;
private:
double speed1;
};
Car::Car()
{
speed1 = 0;
}
#endif
Which of the following is true about placing the function definition Car::Car() in
the header file?
Function definitions cannot be enclosed within header files. It will result in a
compilation error.
Function definitions should not be enclosed within header files. The header file
may be included by multiple source files, which would cause the function to be
compiled more than once.
Function definitions must always be enclosed within the header files but not the
source files.
Function definitions must always be enclosed within the header files and the
source files.