#include <string> #include <iostream> using namespace std; class gammal{ private: -string name; -int payment; public: -gammal(){ --cout<<"New Object Created"<<endl; -} -void get_data(){ --cout<<"Please Enter the name: "; --cin>>name; --cout<<"Please Enter the payment: "; --cin>>payment; -} -void print(){ --cout<<"--------"<<endl; --cout<<name<<endl; --cout<<payment<<endl; -} -~gammal(){ --cout<<"Object Deleted"<<endl; -} }; int main() { -gammal g; -return 0; }