I get error on the two above indicated lines.I can't figure out my eror. Hope some-one can correct me.Code:#include <iostream> using namespace std; class base { public: base(string name) { a=name; cout<<"base."<<a<<endl; //ERROR LINE } void printName(){ cout<<a<<endl; //ERROR LINE } protected: string a; }; int main() { base a("a"); }