View Single Post
Old 12-18-2012, 01:19 PM   PM User | #4
alykins
Senior Coder

 
alykins's Avatar
 
Join Date: Apr 2011
Posts: 1,608
Thanks: 37
Thanked 183 Times in 182 Posts
alykins will become famous soon enough
Quote:
Originally Posted by Dev Hawk View Post

No-arg constructor that creates a default fan. Use this ref. // I think it is like Public class Fan:this(Slow, false, 5, "Blue").
This is the only part I see you did any work- without giving too much away....
Code:
    class Program
    {
        static void Main(string[] args)
        {
            fan f = new fan();
        }
    }


    public class fan
    {
        private string PretendValue;
        private int PretendValue2;

        public fan()
        {
            PretendValue = "cat";
            PretendValue2 = 5;
            this.display();
        }

        private void display()
        {
            Console.WriteLine("{0}, {1}\nfin...", PretendValue, PretendValue2);
            Console.ReadLine();
        }
    }
I do believe that will give you a lot to work with
__________________

I code C hash-tag .Net
Reference: W3C W3CWiki .Net Lib
Validate: html CSS
Debug: Chrome FireFox IE
alykins is offline   Reply With Quote