internal void Add(string word) { List <string> text = new List <string>(); text = new Console.WriteLine(); return; }
static void Main(string[] args) { Console.WriteLine("Hello World!"); // class is fruit, apples and oranges are objects of the fruit class // class is car, toyota and ford are objects of the car class // class is a template for objects, and an object is an instance of the class //when objects are created, they inherit all variables and methods from the class // Car is class, myObj is the name of instance of the class car. //new is a new car being created Car myObj = new Car(); Car myObj = new Console.WriteLine(myObj.color); }
static void Main(string[] args) { ArrayList al = new Console.WriteLine("Hello World!"); }