课堂练习1 #includesiostream.h> class student i int sage; public: studento student(int); int GetAgereturn sage; student({cout<<“ Destructor called”<<end;} student: student( {cout<<” Default constructor called.n”; sage=0 student: student(int age) {cout<<” Constructor called.n”; sage-age课堂练习1 #include<iostream.h> class student { int sage; public : student(); student(int); int GetAge( ){return sage;} ~student( ) {cout<<“Destructor called”<<endl;} }; student::student( ) { cout<<”Default Constructor called.\n”; sage=0; } student::student(int age) { cout<<”Constructor called.\n”; sage=age; }