It's going to depend on quite a few things: it could be any one of them.
First, I assume that the school class and the student class are both in the same project? If not, then it is a relatively simple problem.
Why would you instantiate a school from a student? A school would logically exist independently of the particular student, because it would have many students - rather than a student having many schools.
When you instantiate the school, you are presumably using the instance to access the method (or you wouldn't have mentioned it):
School s = new School ();
Console.WriteLine(s.GetName());
There are two things to check here, both related to the method definition:
1) Is the method declared as
public
? If it isn't, and Student isn't derived from School, then you cannot access it from outside.
2) Is the method declared as
static
? If it is, then you can't access it from the instance, you have to use the class name instead:
Console.WriteLine(School.GetName());