0% found this document useful (0 votes)
7 views26 pages

C++ File

This document is a practical file for a Bachelor of Technology in Electronics and Communication, focusing on C++ programming. It includes a list of 12 experiments with objectives and code outputs for each, covering various C++ concepts such as classes, constructors, inheritance, and exception handling. The file is submitted by Ashish Raturi for the sixth semester to Ms. Vidisha Khetarpal.

Uploaded by

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

C++ File

This document is a practical file for a Bachelor of Technology in Electronics and Communication, focusing on C++ programming. It includes a list of 12 experiments with objectives and code outputs for each, covering various C++ concepts such as classes, constructors, inheritance, and exception handling. The file is submitted by Ashish Raturi for the sixth semester to Ms. Vidisha Khetarpal.

Uploaded by

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

BACHELOR OF TECHNOLOGY

IN
ELECTRONICS AND COMMUNICATION

C++ PRACTICAL FILE

NAME: ASHISH RATURI


SEMESTER: SIXTH
ROLL NO.: 06713202822
SUBMITTED TO: MS. VIDISHA KHETARPAL
INDEX
S.NO. LIST OF EXPERIMENTS DATE

1. Write a program that uses a class where the


member functions are defined inside a class.
2. Write a program that uses a class where the
member functions are defined outside a
class.
3. Write a program to demonstrate the use of
static data members.
4. Write a program to demonstrate the use of
const data members.
5 Write a program to demonstrate the use of
zero argument and parameterized
constructors.
6. Write a program to demonstrate the use of
a dynamic constructor.
7. Write a program to demonstrate the use of
an explicit constructor.
8. Write a program to demonstrate the use of
initializer list.
9. Write a program to demonstrate the
overloading of increment and decrement
operators.
10. Write a program to demonstrate the
multilevel inheritance.
11. Write a program to demonstrate the
exception handling.
12. Write a program to demonstrate the use of
function template.
LAB EXPERIMENT 1
OBJECTIVE:
Write a program that uses a class where the member functions are defined
inside a class.

Code:

OUTPUT:
LAB EXPERIMENT 2

OBJECTIVE:
Write a program that uses a class where the member functions are defined
outside a class.
CODE:
OUTPUT:
LAB EXPERIMENT 3

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

CODE:
OUTPUT:
LAB EXPERIMENT 4

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

CODE :
OUTPUT:
LAB EXPERIMENT 5
OBJECTIVE:
Write a program to demonstrate the use of zero argument and parameterized
constructors.

CODE :
OUTPUT:
LAB EXPERIMENT 6

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

CODE :
OUTPUT:
LAB EXPERIMENT 7

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

CODE :
OUTPUT:
LAB EXPERIMENT 8
OBJECTIVE:
Write a program to demonstrate the use of initializer list.

CODE:
OUTPUT:
LAB EXPERIMENT 9
OBJECTIVE:
Write a program to demonstrate the overloading of increment and decrement
operators.
CODE:
OUTPUT:
LAB EXPERIMENT 10
OBJECTIVE:
Write a program to demonstrate the multilevel inheritance.
CODE:
OUTPUT:
LAB EXPERIMENT 11
OBJECTIVE:
Write a program to demonstrate the exception handling.

CODE:

OUTPUT:
LAB EXPERIMENT 12
OBJECTIVE:
Write a program to demonstrate the use of function template.
CODE :

OUTPUT:

You might also like