#include<iostream.h>
#include<conio.h>
class demo
{
private:
int a1, a2, ah;
float b1, b2, bh;
double d1, d2, dh;
public:
void getdata();
int high(int, int);
float high(float, float);
double high(double, double);
void display();
};
void demo :: getdata()
{
cout<< "Enter two integers : ";
cin>>a1>>a2;
cout<<"Enter two float no. : ";
cin>>b1>>b2;
cout<<"Enter two double no. : ";
cin>>d1>>d2;
}
int demo :: high(int a1, int a2)
{
if(a1>a2)
return a1;
else
return a2;
}
float demo :: high(float b1, float b2)
{
if(b1>b2)
return b1;
else
return b2;
}
double demo :: high(double d1, double d2)
{
if(d1>d2)
return d1;
else
return d2;
}
void demo :: display()
{
ah = high(a1, a2);
bh = high(b1, b2);
dh = high(d1, d2);
cout<<"The biggest of entered integer is : "<<ah<<endl;
cout<<"The biggest of entered float no is : "<<bh<<endl;
cout<<"The biggest of entered double no is : "<<dh<<endl;
}
int main()
{
class demo obj ;
clrscr();
obj.getdata();
obj.display();
getch();
return 0;
}
Home       |      About Us       |     Portfolio       |      Services       |       Career        |    Contact Us       |      Industrial Training        |      Achievement 
Corporate Services
  Web Design and development
  Web Promotion (SEO)
  Multimedia/CD Presentation
  Software development

  E.Commerce

Training@balujalabs

  Software Courses
  Hardware Courses
  Networking.Courses
  Mobile Repairing Courses
  UGC Degrees
Student Corner
 Programming & Projects
 Placement Papers
 Project Ideas
 Synopsis Ideas

  Franchise Section

 Administrator
Franchise Inquiry
 
 

Write a program to enter two integrers, float numbers sand two double numbers and find and display the greater of them using function overloading technique.

 

 

 

 

 

 

 

 

 

                                                                                                                                          

1 To calculate and display the cube of an integer, float and double number using function overloading.
2 To calculate sum of given integers, float and double number using function overloading technique.
3 To demonstrate the operation of constructor overloading
4 To enter two numbers and display them and after the operators overloading operation with prefix notation.
5 To enter two numbers and display them before and after the overloading operation with post notation.
6 To demonstrate the operation of arithmetic operator overloading function.
7 To demonstrate the operation of comparison operator overloading function.
8 To demonstrate the operation of assignment (=) operator overloading function.
9 To demonstrate the operation of arithmetic assignment (+=) operator overloading function.
10 This program illustrates the overloaded subscript operator.
11 This program illustrates the overloaded function call operator.
12 This program illustrators an overloaded member access operator.
13 This program illustrates the use of operator.
14 This program that illustrates the effect of overloading the comma operator.
15 This program illustrates the overloading of the operator new ().
16 This program illustrates the overloading of the delete () operator.
17 Write a program to enter two integrers, float numbers sand two double numbers and find and display the greater of them using function overloading technique.
18 Write a program that uses area () function for calculation area of triangle or a rectangle or a square using function overloading technique (without the use of classes).
19 Write a program to demonstrate the operation of constructor overloading function.
20 Write a program to demonstrate the operation of binary operator (-) overloading function.
21 Write a program to demonstrate the operation of comparison operator (<) overloading function.

 

     
Home       |      About Us       |     Portfolio       |      Services       |       Career        |    Contact Us       |      Industrial Training        |      Achievement