26.02.2015 Views

C#.Net Migration - A2Z Dotnet

C#.Net Migration - A2Z Dotnet

C#.Net Migration - A2Z Dotnet

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Class Basics<br />

public class Human{<br />

}<br />

public int Age;<br />

public string Name;<br />

public void Speak(){<br />

}<br />

Console.WriteLine(“Name:{0} Age:{1}",Name,Age);<br />

Simple class with public<br />

fields for properties<br />

Client code working with<br />

Human classes<br />

class Client<br />

{<br />

static void Main(string[] args)<br />

{<br />

Human h = new Human();<br />

h.Age = 21;<br />

h.Name = "Rian Brandell";<br />

}<br />

}<br />

24

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!