Part 2: Classes, methods and other OO stuff


Introduction

This part builds the OO foundation for programming in C#. In the following chapters, I have made comparisons between how both C# and Java fulfill their support for object-oriented programming. This part has been written with the assumption that you are a Java developer. Hence I will not go through basic OO concepts and those 'why' questions (such as 'why do we want abstract methods?'; 'why are interfaces good?'; 'why do we need constants?'; etc.) but zoom in on the differences between the two languages.

I would suggest that you start with Chapter 5 which dissects the Hello World program you wrote in Chapter 4. The other chapters in this part can be read in any order. When you start on C# programming, you can always refer to the relevant sections for reference.

Language comparisons, in terms of their operators and flow control, will be covered in Part 3.

The chapters in this part are:
 

¢ Chapter 5: Getting started

 

¢ Chapter 6: Class issues

 

¢ Chapter 7: Method issues

 

¢ Chapter 8: Miscellaneous issues.



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