Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Why friend functions cannot used to overload an assignment operator

This is a discussion on Why friend functions cannot used to overload an assignment operator within the C and C++ forums, part of the Software Development category; Why friend functions cannot be used to overload an assignment operator?...

Go Back   Geeks Talk > Software Development > C and C++
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 10-15-2009
Junior Member
 
Join Date: Oct 2009
Location: Bangalore
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Sreedhar R is on a distinguished road
Post Why friend functions cannot used to overload an assignment operator

Why friend functions cannot be used to overload an assignment operator?
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-15-2009
Expert Member
 
Join Date: May 2009
Location: Bangalore
Posts: 989
Thanks: 155
Thanked 420 Times in 201 Posts
rijus is just really nicerijus is just really nicerijus is just really nicerijus is just really nicerijus is just really nice
Re: Why friend functions cannot used to overload an assignment operator

Quote:
Originally Posted by Sreedhar R View Post
Why friend functions cannot be used to overload an assignment operator?
Hi Sreedhar,

A friend function is a non-member function of the class to which it has been defined as friend.

Therefore it just uses the functionality( or the functions and data ) of the class.

so it wont consists the implementation for that class.

Thats why it cant be used to overload an assignment operator.

Regards,
Rijus.
---------------------------------
Real Inspirational Journey.........Unanimously & Sincerely.
Reply With Quote
Reply

  Geeks Talk > Software Development > C and C++

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
overload and overriding skagalya VB.NET 5 09-11-2008 06:01 AM
What are the scenarios for sending invitation to a friend or adding a friend in our b priyapatil Testing Issues 2 05-10-2008 02:09 PM
Class copy constructor and assignment operator Geek_Guest C and C++ 1 12-21-2007 05:49 AM
C++ Friend Functions Lokesh M C and C++ 0 10-04-2007 07:27 AM
Functions/operator in Informatica to find 'IPxxxx' JobHelper Data Warehousing 0 01-11-2007 06:53 AM


All times are GMT -4. The time now is 07:45 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved