#1
  1. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2005
    Posts
    228
    Rep Power
    0

    What is a "Friendless Class" in C#?


    What is a "Friendless Class" in C#? I heard someone refer to it but I googled it online and found nothing.
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    11
    Rep Power
    0
    May be it is just a joke,because i heard nothing about it too.
  4. #3
  5. Lord of the Dance
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Oct 2003
    Posts
    3,611
    Rep Power
    1945
    looks like OP already got some answers:
    http://www.dreamincode.net/forums/topic/296143-what-is-a-friendless-class-in-c%23/
    http://hardforum.com/showthread.php?p=1039242124#post1039242124
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Location
    San Jose
    Posts
    9
    Rep Power
    0
    Maybe C++ is referenced where you've read this. With C++ you can define friends between classes to have more access than just use the public members. This is not possible, with C# - maybe that's why you've seen "friendless".

IMN logo majestic logo threadwatch logo seochat tools logo