Professional Documents
Culture Documents
1 Write a program to
implement array
strings.
2 Write a program to
implement recursion.
3 Program to
implement class
using Access
Modifier public
private protected.
4 Program to
implement
parameterized
constructor
5 Program to
implement copy
constructor
6 Program to
implement destructor
7 Program to
implement multilevel
inheritance
8 Program to
implement
Polymorphism
9 Program to
implement Binary
Operator Overloading
10 Program to
implement Overriding
11 Program to
implement Exception
Handling
C++ Strings
Strings are used for storing text.
For eg :-
C++ Recursion
Recursion is a process in which the function calls it self
For eg :-
PrintCustomNum() is a function which can be uses to print numbers without calling loop from 0
to 6.
C++ Access Specifiers
In C++, there are three access specifiers:
int main()
int x = -1;
// Some code
cout ‹ ‹ " Before I ry \n" ;
try (
cout << ”Inside try
\n”; if (x < B)
I hrov x;
cout ‹ < ”After thraw (NeVer executed) \n ” j
catch (Int x ) {
cout ‹ ‹ " Exception Ca ught \ n " ;
Before try
Inside try
Exception Caught
After catch ( Will be executed)