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

practical oops

The document outlines a series of programming tasks that include checking if a number is odd or even, finding the greatest number among three, calculating the sum of digits, generating a Fibonacci series, and calculating factorials. It also covers concepts such as call by value and reference, pointers, recursion, constructor and destructor functions, function overloading, operator overloading, single and multiple inheritance, virtual functions, inline functions, and swapping numbers using friend functions. Each task aims to demonstrate fundamental programming concepts and techniques.

Uploaded by

Yash Duggal
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

practical oops

The document outlines a series of programming tasks that include checking if a number is odd or even, finding the greatest number among three, calculating the sum of digits, generating a Fibonacci series, and calculating factorials. It also covers concepts such as call by value and reference, pointers, recursion, constructor and destructor functions, function overloading, operator overloading, single and multiple inheritance, virtual functions, inline functions, and swapping numbers using friend functions. Each task aims to demonstrate fundamental programming concepts and techniques.

Uploaded by

Yash Duggal
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

 Write a program to check whether a number is odd

or even.
 Write a program to find the greatest number
among three number using conditional operator.
 Write a program to the find sum of digit of a
number.
 Write a program to find a Fibonacci series of first
20 numbers.
 Write a program to calculate the factorial of a
number.
 Write a program to print given pattern.
 Write a program to demonstrate the working of call
by value and call by reference.
 Write a program to demonstrate the working of
pointer.
 Write a program to demonstrate the working of
recursion.
 Write a program with constructor function and
another for destruction function.
 Write a program to explain function overloading
with different number of arguments.
 Write a program to explain function overloading
with type, order, and sequence of arguments.
 Write a program on overloading operator++
 . Write a program for overloading operator++ and
operator—using friend functions.
 Write a program to explain Single inheritance .
 Write a program to explain multiple inheritance.
 Write a program to explain virtual functions
 Write a program to demonstrate the working of
inline function.
 Write a program to swap two numbers using friend
function

You might also like