Wisdom Materials
Home
About Us
Our Clients
Careers
Services
Education
Jobs
News
Business
Health
Astrology
Entertainment
RealEstate
Devotion
Contact Us
CPP Programs
/ Functions scope in CPP
Program Name
Functions scope in CPP
Program Code
Copy Program
#include
class ab { public: void output(); }; void ab::output() { cout << "Function defined outside the class.\n"; } void main() { ab x; x.output(); }
Input
Output
Function defined outside the class.
Home
Back