interface IPerson { String FirstName { get; set; } }
class Employee : IPerson
{
private String str;
public String FirstName
{
get
{
return str;
}
set
{
str = value;
}
}
}
class Employee
{
private String str;
public String IPerson.FirstName
{
get
{
return str;
}
set
{
str = value;
}
}
}
class Employee : implements IPerson
{
private String str;
public String FirstName
{
get
{
return str;
}
set
{
str = value;
}
}
}
class Employee : IPerson
{
private String str;
public String FirstName
{
get
{
return str;
}
set
{
str = value;
}
}
}
interface IMyInterface { double MyFun(Single i); }
class MyClass
{
double MyFun(Single i) as IMyInterface.MyFun
{
// Some code
}
}
class MyClass
{
MyFun (Single i) As Double
{
// Some code
}
}
class MyClass: implements IMyInterface
{
double fun(Single si) implements IMyInterface.MyFun()
{
//Some code
}
}
class MyClass: IMyInterface
{
double IMyInterface.MyFun(Single i)
{
// Some code
}
}
class MyClass: IMyInterface
{
double IMyInterface.MyFun(Single i)
{
// Some code
}
}
interface IMyInterface { void fun1(); void fun2(); } class MyClass: IMyInterface { private int i; void IMyInterface.fun1() { // Some code } }
delegate void del(int i);
class Sample { public void MyFun(int i, Single j) { Console.WriteLine("Welcome to CuriousTab !"); } }
delegate void del(int i);
Sample s = new Sample();
del d = new del(ref s.MyFun);
d(10, 1.1f);
delegate void del(int i, Single j);
del d;
Sample s = new Sample();
d = new del(ref s.MyFun);
d(10, 1.1f);
Sample s = new Sample();
delegate void d = new del(ref MyFun);
d(10, 1.1f);
delegate void del(int i, Single]);
Sample s = new Sample();
del = new delegate(ref MyFun);
del(10, 1.1f);
delegate void del(int i, Single j);
del d;
Sample s = new Sample();
d = new del(ref s.MyFun);
d(10, 1.1f);
Comments
There are no comments.Copyright ©CuriousTab. All rights reserved.