internal and internal protected
-
namespace validation { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { // ArrayList d = new ArrayList(8); Class1 d; d = new Class1(); } } } thsi is the form class(winodw form class) following ios the user defined class namespace validation { class Class1 { internal protected int h = 0; internal int i=0; } } i know what is the internal and internal protected but y bothe the internal and internal protected are being accessed in form1 class Sonia Gupta Soniagupta1@yahoo.co.in Yahoo messengerId-soniagupta1 Love is Friendship and Friendship is Love....
-
namespace validation { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { // ArrayList d = new ArrayList(8); Class1 d; d = new Class1(); } } } thsi is the form class(winodw form class) following ios the user defined class namespace validation { class Class1 { internal protected int h = 0; internal int i=0; } } i know what is the internal and internal protected but y bothe the internal and internal protected are being accessed in form1 class Sonia Gupta Soniagupta1@yahoo.co.in Yahoo messengerId-soniagupta1 Love is Friendship and Friendship is Love....
-
namespace validation { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { // ArrayList d = new ArrayList(8); Class1 d; d = new Class1(); } } } thsi is the form class(winodw form class) following ios the user defined class namespace validation { class Class1 { internal protected int h = 0; internal int i=0; } } i know what is the internal and internal protected but y bothe the internal and internal protected are being accessed in form1 class Sonia Gupta Soniagupta1@yahoo.co.in Yahoo messengerId-soniagupta1 Love is Friendship and Friendship is Love....
These are access specifiers, If we use "protected" before a method/variable, it can be accessed only to derived class. If we use "internal" before a method/variable, it can be access only within the same assembly. So, internal protected can be accessed within the same assembly as well as in derived class. Hope this served your purpose.;P