[Gtk-sharp-list] Object madness.
George Farris
farrisg@mala.bc.ca
04 Mar 2003 13:40:10 -0800
I want to be able to do the following but it doesn't really seem to
work. From what I have read it should. Any ideas?
public class InhClass
{
}
public class Class1 : InhClass
{
methods here
}
public class Class2 : InhClass
{
methods here
}
public class myclass
{
Object o = new Object();
public myclass ()
{
if (preference == "pref" )
{
Class1 c = new Class1();
o = c;
now access methods in Class1 via o.method()
}
}
The compiler says System.Object does not contain a reference for
o.method()
--
George Farris <farrisg@mala.bc.ca>