I have a Class and Method like below
public class Wakeup : World
{
public void MethodA(string)
{
Log.writeline("Wakeup World");
}
}
And below one is another class and method in which I am trying to call "MethodA"
public class Hello : World
{
public void MethodB()
{
Wakeup p = new Wakeup;
p.MethodA(string);
}
}
This Isn't working. Unable to call "MethodA" inside "MethodB"
Note : Both the classed are Inherited to some other class called "World"
Can anyone suggest me how can I achieve this ?