O'Reilly logo

From Java to C#: A Developer's Guide by Heng Ngee Mok

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required