S
smeagol
Look this code, well, you know how it works, in "public server (client cl)
{ cl.Write(); }" "client" is a know class name, but if somebody write a
custom start class (like client) and it call to "server" the type of the
start class can be change (ie public class client"s")
At this instance, how can i pass the class client to server if the name
(better type) of the parent is unknow?
public class client : Windows.Forms.Form {
public client{ new server(this); }
public Write { System.Console.Write("HI"); }
}
public class server {
public server (client cl) { cl.Write(); }
// public server (can_be_any_name cl) { cl.Write(); }
}
{ cl.Write(); }" "client" is a know class name, but if somebody write a
custom start class (like client) and it call to "server" the type of the
start class can be change (ie public class client"s")
At this instance, how can i pass the class client to server if the name
(better type) of the parent is unknow?
public class client : Windows.Forms.Form {
public client{ new server(this); }
public Write { System.Console.Write("HI"); }
}
public class server {
public server (client cl) { cl.Write(); }
// public server (can_be_any_name cl) { cl.Write(); }
}