Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

use of reference variables in class

Status
Not open for further replies.

princeshri

IS-IT--Management
Jun 22, 2001
48
GB
Hi all,

wonder if someone can tell me how a reference variable can be defined / used in a class.


thanx



Shri
 
class x
{
int b;
int& a;
char c;
char& d
public:
x():a(b),d(c){}//use initialization list in all
//constructors
};
John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top