mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
C#: calling base method
This commit is contained in:
parent
41ec7af8e5
commit
cae70d430e
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user