#include using namespace std; class linkedListclass { public: linkedListclass(int newvalue) { dvalue=newvalue; next = NULL; } int getdvalue() { return(dvalue); } void addbehind(int newvalue) { cout << "Method linkedListClass::addbehind called...\n\n"; } void printlist() { cout << "current node is " << dvalue << endl; if (next != NULL) next->printlist(); else cout << "\n\n"; } private: int dvalue; linkedListclass *next; }; int main() { linkedListclass *first; first= new linkedListclass(23); cout << "The value is " << first->getdvalue() << endl; first->addbehind(45); first->printlist(); first->addbehind(100); first->printlist(); return 0; }