Example
class
ClassA
{
public:void
function1(
int
variable1,
char
variable2);
public:int
main(
int
argc,
const char
* argv[]);
};
Solution
The given example represents a header file.Here the "main" function has been declared. This should be avoided
class
ClassA
{
public:void
function1(
int
variable1,
char
variable2);
};