Logo 
Search:

C++ Programming Article

Submit Article
Comments on Program to illustrate friend function
Category: C++ Programming (Beginners)    Author: Easy Tutor

create two classes DM and DB which stores the value of distances. DM stores distances in metres and centimetres and DB in feet and inches. Write a program that can read values for the class objects and add one object DM with another object of DB. use friend function.


Dyan Hadi
Dyan Hadi from United StatesOct 08
why wee need to use friend function???


Please enter your Comment
  • Comment should be atleast 15 Characters.
  • Please put code inside [Code] your code [/Code].