0% found this document useful (0 votes)
6 views

C++ Lab Practicals

+ Lab practicals

Uploaded by

nitya.e17352
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

C++ Lab Practicals

+ Lab practicals

Uploaded by

nitya.e17352
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Course Code: Course Title: Object 0L:0T:4P 2Credits

BTCS304-18 Oriented Programming


Lab

IK Gujral Punjab Technical University, Kapurthala B. Tech, Computer Science & Engg.

Task 1: Write a program that uses a class where the member functions are
defined inside a class.

Task 2: Write a program that uses a class where the member functions are
defined outside a class.

Task 3: Write a program to demonstrate the use of static data members.

Task 4: Write a program to demonstrate the use of const data members.

Task 5: Write a program to demonstrate the use of zero argument and


parameterized constructors.

Task 6: Write a program to demonstrate the use of dynamic constructor.

Task 7: Write a program to demonstrate the use of explicit constructor.

Task 8: Write a program to demonstrate the use of initializer list.

Task 9: Write a program to demonstrate the overloading of increment and


decrement operators.

Task 10: Write a program to demonstrate the overloading of memory


management operators.

Task 11: Write a program to demonstrate the typecasting of basic type to


class type.

Task 12: Write a program to demonstrate the typecasting of class type to


basic type.

Task 13: Write a program to demonstrate the typecasting of class type to


class type.

Task 14: Write a program to demonstrate the multiple inheritances.


Task 15: Write a program to demonstrate the runtime polymorphism.

Task 16: Write a program to demonstrate the exception handling.

Task 17: Write a program to demonstrate the use of class template.

Task 18: Write a program to demonstrate the reading and writing of mixed
type of data.

You might also like