Hi all,
I have these classes
public class Base
{
private string str;
private string str1;
public string MyStr;
{
get { return str; }
}
public string MySecondStr
{
get { return str1; }
}
}
public class Derived: Base
{
}
What I need is while creating a instance to Derived class, I need to
access only MySecondStr property and I don't want MyStr property. Is it
possible to restrict the MyStr property when accessing the derived
class object. Could anyone help me how to do this?
Thanks in advance