if we study java language how c# can help it?
i didn't get any chance to know about c++ . now i am studying c# language. is it necessary to know about c++?
What is the advantage of c# language when we compare it to c++ lanuage?
Is it necessary to know C++ to learn C#? NO. Does it aid in learning? Definitely yes.
If your goal is to just learn C#, I would say don't worry about C++. But if you want to know two major paradigms of programming (native Vs virtual machine based), it's important to learn C++.
.Net is the virtual machine platform equivalent to JRE. C# is the preferred language to write .Net programs (you can write .net programs also in vb.net, c++.net or even java.net)
Reply:In C++, if class A uses class B and class B uses class A, you will have to forward-declare one or the other and it can restrict what the classes are allowed to do to each other. This type of complicated interdependency is easily solved by C#: forward declaration is not required, any object is usable anywhere in full form.
In C#, we don't have to worry about pointer memory management, the garbage collector takes care of this, much like Java.
In the long term, I can't stress how important knowing C++ is. It'll make the difference between someone who can program in C# vs. someone that understands what C# is / might be doing under the hood, or why doing things one way might be more efficient than doing them another way. You might never use C++, but you will use the knowledge of it.
Reply:if you're asking about the advantage, programming with C# is faster than C++ (in terms of developing time)
if you're asking about the necessary of knowing C++ then I say it's not necessary
C# syntax is more similar to Java rather than to C++ so I think there's no need for you to study C++
Reply:C# is like "compiled Java for .Net", whereas C++ is C++, and can be used with or without .Net. Although they both have a "C" in their name, it is worth remembering that they are two entirely different languages (although they share a lot of syntax). If you were considering learning C++ as an aid to learning C#, don't bother - you'd be better of spending that time learning C# in the first place.
pokemon cards
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment