If you have
public class BaseClass
{
public string BaseClassProperty{get;set;}
}
then you have
public class FirstClass : BaseClass
{
}
and in some code you have
FirstClass instantiation = new FirstClass();
Then you can say
instantiation.BaseClassproperty = 42;
i.e. you access the data stored in the base class
If, however, you want to also do this
FirstClass instantiation = new FirstClass();
FirstClass otherinstantiation = new FirstClass();
instantiation.BaseClassProperty = 42;
and then want to do
int i = otherinstantiation.BaseClassproperty;
and want i to = 42, then you need to make the property Static
e.g.
public class BaseClass
{
public static string BaseClassProperty{get;set;}
}
and then from anywhere in your code you can access the property..
int i = BaseClass.BaseClassProperty;
(this is pretty much what Paulo said above, but more verbose!)