I am making a unit converter for windows phone but I'm having some problems with class inheritance.
I have the class Measurement
which is supposed to be the top class for the graphical content in my program.
public class Measurement : PhoneApplicationPage
{
public void Convert(object give)
{
supervar.Comparer(this);
}
public WindowsPhoneControinput supervar { get; set; }
}
Measurement
does not contain any graphical content, but it's subclasses do; And here is where I am having difficulties.
The subclasses: Lengthco
, Weigthco
and Volumeco
needs to inherit from Measurement
but the compiler says:
"Partial declarations declarations of 'Phoneapp1.Lengthco' Must not specify different base classes".
Why is this happening?