summaryrefslogtreecommitdiffhomepage
path: root/csharp.html.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'csharp.html.markdown')
-rw-r--r--csharp.html.markdown6
1 files changed, 3 insertions, 3 deletions
diff --git a/csharp.html.markdown b/csharp.html.markdown
index 490c34bb..951958b6 100644
--- a/csharp.html.markdown
+++ b/csharp.html.markdown
@@ -480,13 +480,13 @@ namespace Learning
set { _hasTassles = value; }
}
- private int _frameSize;
+ // Properties can be auto-implemented
public int FrameSize
{
- get { return _frameSize; }
+ get;
// you are able to specify access modifiers for either get or set
// this means only Bicycle class can call set on Framesize
- private set { _frameSize = value; }
+ private set;
}
//Method to display the attribute values of this Object.