P
prabhat tiwari
Suppose a interface having one method "GetName" as
interface I1
{
void GetName();
}
and have a abstract class
abstract calss C1
{
public Abstract void GetName();
}
Class C2:C1,I1
{
public void Override GetName()
{
////Code of class
}
When we create object of C2
in this way
C2 obj= new c2;
obj.GetName will work or not
interface I1
{
void GetName();
}
and have a abstract class
abstract calss C1
{
public Abstract void GetName();
}
Class C2:C1,I1
{
public void Override GetName()
{
////Code of class
}
When we create object of C2
in this way
C2 obj= new c2;
obj.GetName will work or not