Docsity

Class Location-Object Oriented Programming-C Language Codes, Exercises of Object Oriented Programming

Partial preview of the text

Download Class Location-Object Oriented Programming-C Language Codes and more Exercises Object Oriented Programming in PDF only on Docsity!

class location { char college[100]; char lab_name[100]; public: location() { strcpy(college,"P.A.E.C"); strcpy(lab_name,"CHEMISTRY LAB"); } char* g1_r() { return college; } char* g2_r() { return lab_name; } };

docsity.com