C#: calling base method

This commit is contained in:
Max Yankov 2013-08-17 23:28:21 +02:00
parent 41ec7af8e5
commit cae70d430e

View File

@ -549,6 +549,13 @@ namespace Learning
{
gear = 0;
}
public override string ToString()
{
string result = "PennyFarthing bicycle ";
result += base.ToString(); // Calling the base version of the method
return reuslt;
}
}
} // End Namespace