Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Written by Sam-Mauris Yong http://mauris.sg/
- * Public Domain
- */
- namespace Sample {
- class Example {
- public int Count { get; set; }
- public Example() { // constructor
- }
- public Example(int count){ // overloaded constructor with different argument list
- Count = count; // makes the this.Count to be the count parameter
- }
- public void example(){ // this is a class method, not constructor
- }
- public void Example(){ // method, but same as class name - so invalid
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement