summaryrefslogtreecommitdiffhomepage
path: root/csharp.html.markdown
diff options
context:
space:
mode:
authorMax Yankov <golergka@gmail.com>2013-08-17 23:28:21 +0200
committerMax Yankov <golergka@gmail.com>2013-08-17 23:28:21 +0200
commitcae70d430e40478e2c916489e53ffcb24f8fe024 (patch)
tree9b157e6972af82af97cdbc8f729ab29657275a31 /csharp.html.markdown
parent41ec7af8e5ac7e4a7ab8b8fc008466be98b0cdc4 (diff)
C#: calling base method
Diffstat (limited to 'csharp.html.markdown')
-rw-r--r--csharp.html.markdown7
1 files changed, 7 insertions, 0 deletions
diff --git a/csharp.html.markdown b/csharp.html.markdown
index 22fb58e1..0012fcb3 100644
--- a/csharp.html.markdown
+++ b/csharp.html.markdown
@@ -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