By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,955 Members | 1,795 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,955 IT Pros & Developers. It's quick & easy.

references for a class in C++

P: 62

can any one let me know aout the concept of references for a class


Sep 18 '06 #1
Share this Question
Share on Google+
2 Replies

Expert Mod 5K+
P: 8,916
References work very much like pointers, however it is harder (but not impossible) to pass a reference that does not reference a valid object.

A reference must always be initialised to a valid object.

References use object member notation (.) rather than pointer member notation (->)
Sep 18 '06 #2

P: 62
Thank you Banfa for the information
Sep 18 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.