Thanks for checking my problem,
I meant from Friend Class something there is in C++(not in
VB.NET or C#.NET)
Internal(C#.NET)==Friend(VB.NET)!=Friend(C++)
Friend classes in C++ let just
one class access another class
Take a look at my example
Code:
C++
class wheel{
friend class car;//car can access wheel without any restriction
friend class bus;//bus can access wheel without any restriction
//other declarations for wheel
};
class car{
//declarations for car
};
class bus{
//declarations for bus
};
as you see I didnt use
Nested Classes,(I used
Composite Classes instead)
I dont know how I can convert my C++ example to C#(without using Nested Classes)
(if I use Nested classes I have to declare Wheel class
in every bus or car class ...)
--------------------------------------------
Mehdi.:)