Inheritance Programs

C++ program to find greatest between three numbers using single inheritance

Greatest between three numbers using single inheritance.

C++ program to find greatest between three numbers using single inheritance.Here class scan is base class and class great is a derived class from class scan.

OUTPUT

Greatest between three numbers using single inheritance


The above program can also be done by passing value using object.

OUTPUT

Greatest between three numbers using single inheritance


Comment below if you are facing any problem.


Also read

C++ program swap two numbers using single inheritance


Summary
C++ program to find greatest between three numbers using single inheritance
Article Name
C++ program to find greatest between three numbers using single inheritance
Description
Program to find greatest between three numbers using single inheritance.A simple if and else method is used to find greatest between three number.
Author
Publisher Name
Scanfcode
Publisher Logo