Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old March 12th, 2008, 01:23 PM
Registered User
Join Date: Mar 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

With C# (and java) it's impossible to implement exactly the same C++ "friend class" concept.

Old March 13th, 2008, 06:54 PM
Authorized User
Join Date: Jul 2003
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts

Confusion always arises due to the use of 'Friend' in VB which has nothing to do with the meaning of 'friend' in C++.

Protected internal is not a solution since the 'friend' concept in C++ only involves explicitly specified cooperating classes, not every class in the assembly or derivation chain.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Friend access modifier acts as private sandeep ASP.NET 2.0 Professional 2 July 19th, 2007 07:35 AM
Friend WithEvents kscase Visual Basic 2005 Basics 1 May 3rd, 2007 03:16 PM
friend adder in vb.net renjininair_2000 C# 1 March 13th, 2006 01:01 PM
Friend Adder in VB.Net renjininair_2000 BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 0 March 11th, 2006 02:34 AM
anyone friend can give me world address database a ChrisWu Classic ASP Databases 0 March 31st, 2004 11:13 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.