Docsity

Class Chemistry Lab Part 2-Object Oriented Programming-C Language Codes, Exercises of Object Oriented Programming

Partial preview of the text

Download Class Chemistry Lab Part 2-Object Oriented Programming-C Language Codes and more Exercises Object Oriented Programming in PDF only on Docsity!

using namespace std; class chemical { char nature[100]; char name[100]; float quantity; public: char* get_name() { return name; } char* get_nature() { return nature; } float& get_quantity() { return quantity; } };

docsity.com