المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : where clause programming & implementation difference



C# Programming
04-14-2013, 11:55 AM
Suppose we have declared a method as :-
class A { public void Hello( ) {System.Console.WriteLine("Hello World "); } } //********************************class B where T:A{ // case 1 }//**********************************Class C T: A{// case2 }Q1) My question is that how would the implementation of the class Hello be different in cases 1 and 2 ?
Q2) If a public access specifier "public " be added for class A , will there be any difference?