M
MarkJ
him im kinda new to c-sharp...
to reference up the class chain, how do i reference
the super class (parent)
example
class mybase
{
protected int abc=0
}
classs myclass:mybase
{
}
class another:myclass
{
public another()
{
// how would i reference up the inherit
int efg
efg=base:base:abc
}
}
// 2nd Question
ownership
if i instantiate a class from a top level of the app
how would i assign a owner to the class
example
class App
{
myclass oClass = new Myclass
// how can i assign App class as owner of myclass
}
thanks
MarkJ
to reference up the class chain, how do i reference
the super class (parent)
example
class mybase
{
protected int abc=0
}
classs myclass:mybase
{
}
class another:myclass
{
public another()
{
// how would i reference up the inherit
int efg
efg=base:base:abc
}
}
// 2nd Question
ownership
if i instantiate a class from a top level of the app
how would i assign a owner to the class
example
class App
{
myclass oClass = new Myclass
// how can i assign App class as owner of myclass
}
thanks
MarkJ