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
Java offers other advantages for the users; the flexibility, the users can transfer it to various operating systems and hardware platforms. The garbage collection feature for Java enables the systems to reuse memory space from other programs (Bartos,
Java was developed by a team led by James Gosling at Sun Microsystems. Originally called Oak, it was designed in 1991 for use in embedded consumer electronic appliances. In 1995, renamed Java, it was redesigned for developing Internet applications.
Programming languages are vast and diverse in their numbers. These different languages use fundamental styles of programming called programming paradigms. These programming paradigms layout the particular design approach that a program will use to solve a problem or achieve an objective. Of the many different types of programming paradigms, some of the more distinguished ones are procedural, functional, logical, and object orientated programming. Recently the object orientated languages have been rising in popularity due to their ability to easily implement large programs. There are many different object orientated programming languages (OOPLs), among them are C#, Java, Ruby, and Python. This essay will compare and contrast two of these languages: Python and Java.
As my search of the second language to write the analysis started, I wanted to find a language that I believe was more interesting that the ones I already know. Dart is a multi-purpose, garbage-collected, class-based, programming language that borrows the same C-like syntax as many modern programming languages out there. Dart was originally developed by Google and released on 2011. [1] The main usages of Dart are four; compiled as JavaScript to run in the Chromium web browser, stand-alone by using the Dart Virtual Machine, and ahead-of-time compiled into machine code. In other to run on the main-stream web browsers, Dart "relies on a source-to-source compiler to JavaSript", which is basically a type of compiler that takes the source code in one language as input, and output a source code in another language. This is the opposite to tradicional compilers, which translate between a high level language to a lower level, while source-to-source translate to a langauge within the same level of abstraction. In some cases, code written in Dart can run faster than the same code written using JavaScript. [1] [2] The Dart SDK brings a modified version of Chromium that includes a Dart VM which allows to run Dart on this browser. In my opinion, I believe that the target of Dart 's designers is to substitute JavaScript in the future. By allowing source-to-source compilation and integrating a Dart VM to the Chromium browser, I beleive this is an attempt to make people use Dart instead of
Knowing Java creates array of objects help programmers rapidly spawn multiple types of their objects. Java is one of my favorite programming
The need for more powerful and user-friendly software grows exponentially every year. This means that there is a higher demand for better quality and more versatile software. Higher quality software that is versatile and consistent was very difficult to create for developers before object-oriented programming was created. The object-oriented programming method of utilizing objects and methods has revolutionized the way programmers create new applications. By allowing objects to be reusable and flexible, this allows more time to be spent on creating meaningful coding tasks with less time coding GUI’s (Gaddis & Irvine, 2014, p. xvii). Microsoft’s Visual Basic and Oracle’s Java are object-oriented programming languages that are very powerful applications which contain many similarities while having small differences in the syntax and the usage of elements that are common to both.
The modern programming is based on the concept that “program little and use more”. The object oriented programming languages are playing a vital role in the industry of development. The OOP introduced following concepts:
Usually we compile and run C# programs from within an integrated development environment (IDE) like Visual Studio. Microsoft Visual Studio is an integrated
This paper is about the evolution of Object-oriented technology in software design and implementation and its role in current market for developing web based products or server side scripting. Many Object-oriented languages have come in market but among them companies prefer to use open source OO languages such as Java, C++, C# .NET, and Visual Basic .NET etc. The demand for these languages has increased because the cost of licensing is very less or nothing. As these languages are open source, it easy to find relevant libraries and source code for the developers while developing a product. The cost of the infrastructure such as development IDE’s or testing tools are also minimal or available for free. Hence all these factors
Java language is simple. Java language syntax and the C language and C ++ language is very close, so most programmers are easy to learn and use Java. On the other hand, Java discarded rarely used in C ++, it is difficult to understand, confusing those features, such as operator overloading, multiple inheritance, automatic casts. In particular, Java language does not use pointers, and provides automatic garbage collection, so programmers do not have to worry about memory management.
C++, the object oriented language provides a standard class library that can be extended by the users, thus saving a lot of coding and debugging effort.
Java as a programming language is one that was designed in a time when the distribution of information was rapidly increasing. Its original purpose was to be used in a home entertainment controller for the television, however it was much too advanced for the industry (The History of Java Technology), and so java moved on to a much more capable, and growing internet. Java’s uses aren’t just restricted to the internet though, Java is/was produced to be easily distributed and implemented among many platforms. Java was produced with a set of goals in mind. One of its most noteworthy and successful goals was to be portable/ cross platform. Java owes a good amount of its success to its object oriented core, as well as being built upon its familiarity with the c languages among other things. Java like all programming languages are judged based on their writability, readability, reliability and overall cost.
C++ is a compiler based programming language that means without compilation no C++ program can be executed. First we need compiler to compile our program and then execute.
Object-oriented (OO) technology in software design and implementation has gained popularity for cost reduction and quality improvement. Research the concept of OO. In 10 pages ( double spaced, 12 point Times Roman font with 1 inch margins ), explain the evolution of OO, how it differs from procedural programming, why it is more cost effective and how it can improve software quality. The research project will be submitted through Turnitin
OOP makes it easy to maintain and modify existing code as new objects can be created with small differences to existing ones.