I'm a novice programmer just beginning to learn the new C# language.
I'm a bit confused about the way Inheritance and Interfaces are constructed
in C#. The following examples may help clarify my confusion:
interface IControl
{
void Paint();
}
interface ITextBox: IControl
{
void SetText(string text);
}
public class IControl
{
void SetText(string text);
}
public class EditBox : IControl
{
public void Paint() {...}
public void Bind(Binder b) {...}
}
Can the designers of the language ponder over this and maybe think of a way
to remove this confusion in future releases of the language?
I was wondering., wouldn't it be better to use the more clearer VB-style or
Java-style methods of invoking inheritance and interface? After all this is
not the era of the criptic C++ style way of programming. I think this would
remove the confusion a great deal.
e.g.
interface ItextBox implements Icontrol {}
AND
public class EditBox inherits Icontrol {}
etc.