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

Index C++

Uploaded by

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

Index C++

Uploaded by

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

Index

S No. Practicals Sign


1. WAP to implement ‘Inline function’

2. WAP to implement call by reference and return by reference


using class. [Hint. Assume necessary functions]

3. WAP to implement friend function by taking some real life


example

4. WAP to implement ‘Function Overloading

5. WAP to implement Parameterized Constructor, Copy Constructor


and Destructor
6. WAP to show the usage of constructor in base and derived classes,
in multiple inheritance
7. Create a class employee which have name, age and address of
employee, include functions getdata() and showdata(), getdata()
takes the input from the user, showdata() display the data in
following format: Name: Age: Address:
8. Write a class called CAccount which contains two private data
elements, an integer accountNumber and a floating point
accountBalance, and three member functions: • A constructor that
allows the user to set initial values for accountNumber and
accountBalance and a default constructor that prompts for the input
of the values for the above data numbers. • A function called
inputTransaction, which reads a character value for
transactionType(‘D’ for deposit and ‘W’ for withdrawal), and a
floating point value for transactionAmount, which updates
accountBalance. A function called printBalance, which prints on
the screen the accountNumber and accountBalance.
9. WAP to add and subtract two complex numbers using classes

10. Write program to overload Binary + to add two similar types of


objects. (Both with and without using friend functions)
11. WAP to implement += and = operator

12. Implement the following hierarchy considering appropriate data


members and member functions (use Virtual functions).

You might also like