M
Michael Thompson
I am new to .Net and OOP techniques; I am not even certain that I using
the correct terminology here.
I believe that I want to know how to do inheritance.
I want to create a custom "string" class, "TSTString".
TSTString should behave exactly like a string except that I want to add
a couple methods like "public string ProperCase()", but still have the
TSTString object behave like string, and be able to pass them through as
string-type parameters.
Here is how I would want the class to behave:
static void Main()
{
string someText0;
string someText1;
TSTString someText2;
someText0 = someText2.ProperCase();
someText1 = someText2.SubString(1, 2);
MessageBox.Show(someText2);
}
the correct terminology here.
I believe that I want to know how to do inheritance.
I want to create a custom "string" class, "TSTString".
TSTString should behave exactly like a string except that I want to add
a couple methods like "public string ProperCase()", but still have the
TSTString object behave like string, and be able to pass them through as
string-type parameters.
Here is how I would want the class to behave:
static void Main()
{
string someText0;
string someText1;
TSTString someText2;
someText0 = someText2.ProperCase();
someText1 = someText2.SubString(1, 2);
MessageBox.Show(someText2);
}