This is an article discussion thread for discussing the SitePoint article, "Object Oriented C# for ASP.NET Developers"
| SitePoint Sponsor |
This is an article discussion thread for discussing the SitePoint article, "Object Oriented C# for ASP.NET Developers"
When de cola is cara and the cara is cola its the same put caracola or colacara, did you understand it?
Hello
I was following the tutorial. The code provided doesn't compile.
(CoconutTree.cs)
use this instead:Code:public class CoconutTree : Tree { private int intNuts = 0; public int IntNuts { get { return intNuts; } set { if (value < 0) return; intNuts = value; } } public CoconutTree() : base() { intNuts = 0; } public CoconutTree(int height) : base(height) { intNuts = 0; } public CoconutTree(int height, int intN) : base(height) { if (intNuts < 0) this.intNuts = 0; else this.intNuts = intN; }
(Tree.cs)
Code:public class Tree { private static int totalTrees = 0; private int height; public Tree() : this(5) { //constructor } public Tree(int h) { if (h < 0) this.height = 0; else this.height = h; totalTrees++; }
This is the best tutorial I have come across. Thanks alot...
wonderfull thank u
I've been programming in C# for 2 years now, and have a good understanding of it, however I read the article just out of curiosity and to take some advice for explaining in simple terms to newbie programmers some examples.
Excellent tutorial for beginners, wouldn't have put things better myself. Maybe I'd have explained Exception handling with the Coconut picking method instead of using booleans, but then that may well have been overwhelming.
Anyways, great job.
Very Nice and useful article .
Thanks a lot.
Bookmarks