Error of expected unqualified-id before ')' token

#include<iostream>
#include<string>
using namespace std;
class addition()
{
public:
int a,b,c;
void input()
{
cout<<"frm input"<<endl;
cout<<"enter the two numbers"<<endl;
cin>>a>>b;
}
addition()
{
c=a+b;
cout<<"the sum is"<<c<<endl;
}

};

int main()
{
int a,b,c;
addition a1;
a1.input();
getch();
return 0;
}
class addition() should be class addition
thanks
Topic archived. No new replies allowed.