preview

Cop 3330 Object Oriented Programming. Daniel Gutierrez.

Good Essays

COP 3330 Object Oriented Programming
Daniel Gutierrez
PID: 3923693
April 9, 2017

Object-oriented programming at its core is a practice of strategic thinking. Essentially, in OOP we tend to focus on objects rather than "actions" and data rather than logic. A key step in OOP is identifying the objects one wants to manipulate and observing how they relate to each other. The basic idea of OOP involves breaking up the code into objects that can message each other, which proves to be very beneficial. To better understand and use object-oriented programming as intended, I decided to investigate two different languages that implement the object-oriented approach to programming. I chose Java because I am already familiar with the syntax and its …show more content…

C# is a general-purpose programming language as part of Microsoft’s .NET initiative. It was designed for the Common Language Infrastructure (CLI). C# applications are compiled into bytecode that can run on implementations of the CLI. The fact that Microsoft own Visual Studio means that the IDE is not easily accessible to anyone, as Java is. That is later mentioned in the differences between the two.
From an article that suggests that C# is an evolution of Java, I was able to gather evidence on the similarities between them and understand the ways that C# actually improves upon, when compared to Java. An interesting discovery in my research was that the keywords in Java language are very similar to the ones in C#; for example, new, bool, this, break, static, class, throw, virtual, and null. But they are a few different keywords in C# that simply are not the same as in Java. Furthermore, C# and Java share the same primitive data types, with the exception that C# uses the System namespace regarding those objects. In C# and Java, there is built-in garbage collection, it helps prevent memory leaks by removing objects that are no longer being used by the application. Basically, this means that, although memory leaks can occur, memory management is pretty much taken care for you. From an article that suggests that C# is an evolution of Java, I was able to gather evidence on the differences

Get Access