Chapter 4. Hello C


Chapter 4. Hello C#!

Even before we start off with C# syntax and semantics in Part 2, let's do the traditional "Hello World" example just to warm up. This is Hello World, C# version: [1]

[1] Doesn't this look like Java? This familiarity sure gives some confidence doesn't it? At first glance, the Hello World program makes C# look more 'Java-ish' than 'C-ish', but the differences between C# and Java will become more obvious as we progress.

 // HelloWorld.cs public class TestClass{   public static void Main (){     System.Console.WriteLine("Hello C#! Here I come!");   } } 


From Java to C#. A Developers Guide
From Java to C#: A Developers Guide
ISBN: 0321136225
EAN: 2147483647
Year: 2003
Pages: 221
Authors: Heng Ngee Mok

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net