/*
State the output
*/
#include<iostream>
using namespace std;
class Test
{
public:
int main(int s)
{
cout<<s<<endl;
return 0;
}
int main(char *s)
{
cout<<s<<endl;
return 0;
}
int main(int s,int m)
{
cout<<s<<" "<<m;
return 0;
}
};
int main()
{
Test obj;
obj.main(3);
obj.main("I like C++");
obj.main(9,6);
return 0;
}
State the output
*/
#include<iostream>
using namespace std;
class Test
{
public:
int main(int s)
{
cout<<s<<endl;
return 0;
}
int main(char *s)
{
cout<<s<<endl;
return 0;
}
int main(int s,int m)
{
cout<<s<<" "<<m;
return 0;
}
};
int main()
{
Test obj;
obj.main(3);
obj.main("I like C++");
obj.main(9,6);
return 0;
}