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 ...

Get From Java to C#: A Developer's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.