View this PageEdit this PageAttachments to this PageHistory of this PageHomeRecent ChangesSearch the SwikiHelp Guide
Hotspots: Admin Pages | Turn-in Site |
Current Links: Cases Final Project Summer 2007

Discussion 1 - Marcus Moore

A Comparative Overview of C# vs Java and C++

C# was a development that made its appereance in the new millenium. Unlike Java, C# can be easily integrated among other languages. However, Microsoft, although it did not entirely leave out portations to different platforms, made C# lack in comparison to Java in this department. Regardless, C# streamlines many properties of java, such as methods which reduce redundancy like so:


public int getSize() {
return size;

public void setSize (int value) {
size = value;


public int Size {
get {return size;
set {size = value;

This quality is seen throughout C# for things such as indexers(allowing objects to be treated as arrays), delegates(Handling of multiple methods), formalized events, enums(which remove to necessity of 'final static' variable holding numbers), short-hand for for-loops, structs, type unification, polymorphism, parameter modifers and other miscellaneous attributes.

Of course, the overall aspect of C# is very similar to C++ and Java, allowing a transition between the languages to be much easier. That was one main intent of developing C#, as an unfamiliar program had the possibility of putting programmers away from learning it. By allowing ease of transition while at the same time streamlining many attributes of the program allows for a more efficient programming environment.

So, while many other articles (such as Blake O'Hare's) focus on the major difference between programming languages based on the focus(which has garbage collection, public and private methods, strongly typed, etc.), the current article makes comparisons between C++, java, and C# in order to reveal the improvements upon Java and C++ based on the same ideology implemented in those languages.


Links to this Page