| 1. program to demonstrate example of class student that contains two public member functions getdata() and showdata() and four data members (rollno,name,clas and marks) - | Code |
| 2. program to demonstrate example of class employee that contains two public member functions getdata() and showdata() and four data members (ecode,name,salary and designation) - | Code |
| 3. program to demonstrate example of class book that contains two public member functions getdata() and showdata() and four data members (bookid,name,price and author) - | Code |
| 4. program to demonstrate example of class student with member functions defined outside the class (member functions can be referred using scope resolution operator ::) - | Code |
| 5. program to demonstrate example of class student with array marks having 3 integer elements as a datamember of the class - | Code |
| 6. program to demonstrate example of class student with array marks having 3 integer elements as a datamember of the class (datamembers total and percentage are calculated using member function calculate) - | Code |
| 7. program to demonstrate example of class employee with data members as ecode,ename,designation,basic,hra,da and total) calculate total function calculates the total salary as sum of basic,da and hra , getdata function inputs data from user and showdata member function displays data - | Code |
| 8. program to demonstrate example of nested class (which means class within a class) , class student contains a class marks - | Code |
| 9. program to demonstrate example of function returning object of a class (class distance is created with data members feet and inches) and function add adds two distance objects and returns the resultant object - | Code |
| 10. program to demonstrate example of a class student containing static data members (count which keeps records of objects created) and static member functions - | Code |
| 11. program to demonstrate example of class bankaccount with data members ( account_no,name,type,balance) and contains member functions (deposit,withdraw and showdata), class also contains a default constructor - | Code |
| 12. program to create a reference to object of class student - | Code |
| 13. program to create a class box with data members (width,depth and height) and member functions (getdata,showdata and volume)(volume member function calculates the volume of the box ) - | Code |