up vote 1 down vote favorite
1
share [fb]

I have found a good book that I liked. It explains OOP in easy way and in some detail but it is not for C# it is for Java. So, should can I easily transfer and apply my knowledge to C# after reading and applying the concepts in it?

I also found a programmer who explains C# in some paid videos, I am not sure if the book of java will be more helpful for me or the videos of c#!

link|improve this question

26% accept rate
3  
Yes, assuming that you are at least an average programmer. – Job Jul 2 at 3:48
1  
Yes, if your objective is to write "hello world". No, if any non-trivial part of the framework is involved. – Aaronaught Jul 2 at 3:50
If you're like most of us, you'll learn best by taking advantage of multiple resources including possibly books, tutorials, and instruction. Myself, when starting to learn Java and C#, I got a bunch of used books to start out with because they were cheap and each offered a different take on the subject. YMMV. – Hovercraft Full Of Eels Jul 2 at 5:09
@Aaronaught C# is not a Framework, nor is Java. They are languages that exist in different environments. eg: You can use C# to write UI game code in Unity 3D without ever touching .NET. The languages are similar enough that knowing one helps with learning the other, and both are languages that can teach you good OOP skills that transfer to the other. Frameworks are different beasts alltogether. – scriptocalypse Jul 2 at 5:12
Whatever framework you end up using, whether it's the .NET framework or Mono or Unity 3D or what have you - that invariably ends up being the Hard Part that takes months to learn one's way around. C# doesn't normally get used in isolation and this question is about the transferability of skills; fact is that Java experience really doesn't qualify someone for anything more than an entry-level C# position (or C++, or Delphi, or any other OO language). – Aaronaught Jul 2 at 6:06
feedback

3 Answers

The object models are relatively similar. If you understand how inheritance and polymorphism work in Java, things aren't too different in C#. Most of the features that make C# different (structs, operator overloading and anonymous functions, to name a few) are not essential features, so you can write C# code that looks a lot like Java code.

On the other hand, the .NET Framework doesn't have much in common with JRE libraries. So if you learn how to make GUIs, draw graphics, deal with dates, etc. in Java, that knowledge won't transfer. I wouldn't worry about it, though -- being comfortable with the language itself is more important.

I wouldn't pay to learn C#. There are decent tutorials on MSDN, and if you don't like those, there are plenty of free resources on other websites.

link|improve this answer
2  
Actually everything I've seen about the .NET libraries looked very similar to the Java libraries. Of course the classes and methods have different names, but most of the functionality seems to be present and work very similarly. – Michael Borgwardt Jul 2 at 7:47
feedback

Yes, you can. But is it really necessary? Mostly, you can pick up a language directly. There are lots of books/tutorials on C# itself.

All that people like us need in terms of knowledge: List of freely available programming books

IMO OOP concepts can come from two sources: lots of practise and great mentorship.

link|improve this answer
feedback

When I was in university, we were taught programming using the Java language. I've had some idea of C/C++ programming from high school, so I found Java very appealing and easy to learn. At the end of my first year at university I had to find a job in order to support myself and I was recruited as an ASP.NET developer with the C# language. So, from my own personal experience, switching from Java to C# was very seamless and easy process. However, I strongly recommend reading a book on the C# language and the .NET framework, especially if you plan look for a job in C# (I actually did it myself before I started working with ASP.NET).

Good luck in your efforts.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.