Class AboutMe { public: string name = "Ashish Aswal" string contact = "+91-7619420271" string email = "
[email protected]" string profession = "Software Development" void myday() { normalday(); } private: void normalday() { eat(); code(); sleep(); } void eat() { cout << "Eat Healthy Food." << endl; } void code() { cout << "Writing code makes life easier." << endl; } void sleep() { cout << "Always take a proper nap." << endl; } };
©