List of Experiments CPP
List of Experiments CPP
List of Experiments CPP
(AUTONOMOUS)
B.Tech. II Year I Semester
OBJECT ORIENTED PROGRAMMING THROUGH C++
Week 1:
Week 2:
Week 3:
Week 4:
1. C++ program to illustrate dynamic allocation and deallocation of memory using new
and delete.
2. C++ program to illustrate dynamic allocation and deallocation of memory using
constructor and destructor.
3. C++ program to demonstrate passing of objects to functions using:
i. Call-by-value
ii. Call-by-reference
iii. Call-by-pointers
4. C++ program to create a function that returns an object.
5. C++ program to create an array of Student objects and display the data for each
student.
6. With the help of Pointer to objects show operations on Array of objects.
7. C++ program to implement Array of pointers to objects.
8. C++ program to demonstrate example of constructor using “this” pointer.
9. C++ Program to show dynamically resizing of an array(
i. Create an entirely new array of the appropriate type and of the new size.
ii. Copy the data from the old array into the new array .
iii. Delete the old array.
iv. Change the pointer. )
10. C++ Program to demonstrate working of friend function with class.
11. C++ Program for Addition of members of two different classes using friend Function.
12. C++ program to demonstrate friend Class.
Week 5:
Week 6:
Week 7:
Week 8:
Week 9:
Week 10:
Week 11:
Week 12: