0% found this document useful (0 votes)
49 views2 pages

OOPS Practical File

Uploaded by

aryanthakur3238s
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)
49 views2 pages

OOPS Practical File

Uploaded by

aryanthakur3238s
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

G.L.

BAJAJ INSTITUTE OF MANAGEMENT


Knowledge Park III, Greater Noida, Distt. G.B. Nagar, U.P., India, Pin 201306

A
Practical File
of

“Object Oriented Programming Using C++”

BCA-306

BACHELOR OF COMPUTER APPLICATION


(BCA)
CHAUDHARY CHARAN SINGH UNIVERSITY, MEERUT
Batch - (2025-26)

NAAC A++

Submitted to:- Submitted By:-


Ms. Kirti Chaudhary Name-
Asst. Professor Roll. No.-
INDEX
S. No List of Program Page No. Signature
1 Write a program in C++ to find the Area and Perimeter of a Rectangle.
2 Write a program in C++ to find the area and circumference of a circle.
3 Write a program in C++ to find the third angle of a triangle.

4 Write a Program to illustrate New and Delete Keywords for dynamic memory
allocation
Write a C++ Program to check if a number is prime or not and print all the
5
prime numbers upto a given number.
6 Create a class named 'Student' with a string variable 'name' and an integer
variable 'roll_ no'. Assign the value of roll_ no as '2' and that of name as
"John" by creating an object of the class Student.
7 Write a program by creating an 'Employee' class having the following
functions and print the final salary.
1 - 'getInfo ()' which takes the salary, number of hours of work per day of
employee as parameters
2- 'AddSal()' which adds $10 to the salary of the employee if it is less than
$500.
2 - 'AddWork()' which adds $5 to the salary of the employee if the number of
hours of work per day is more than 6 hours.
8 Write a C++ program that illustrates the order of execution of constructors
and destructors when new class is derived from more than one base class.
Write C++ program that illustrate how the following forms of inheritance are
9 supported: a)Single inheritance b)Multiple inheritance c)Multi level
inheritance d)Hierarchical inheritance
Write a C++ program to find area of rectangle, triangle and sphere by using
10 function overloading.

Write a C++ program to add two objects using binary plus(+) operator
11 overloading

Write a program that illustrate the use of Virtual function


12

Write a C++ program that uses function templates to find the largest and
13 smallest number in a list of integers and to sort a list of numbers in ascending
order.
Write a C++ program to write and read text in/from file
14

Write a C++ program to demonstrate example of seekg() and seekp() function


15

Write a C++ program to demonstrate example of tellg() and tellp() function


16

Write a Program Containing a Possible Exception. Use a Try Block to Throw


17 it and a Catch Block to Handle it Properly.

Write a to demonstrate nesting of try and catch block


18

You might also like