Short Paper 1-2 pages As discussed, Java is an object-oriented programming langu
ID: 674678 • Letter: S
Question
Short Paper 1-2 pages
As discussed, Java is an object-oriented programming language. Another programming methodology is procedural programming, which is a list of instructions basically telling the computer what to do.
Write a short paper on the advantages of programming in an object-oriented language. Compare that to the advantage of programming in a structured programming language.
Additionally, discuss one application you would like to see developed and analyze what type of programming methodology would fit it and why. If the programming methodology is object-oriented, what are the objects in your application?
Use this link for additional information on the comparison between procedural and object-oriented programming.
For additional details, refer to the Short Paper/Case Study Rubric in the Assignment Guidelines and Rubrics section of the course.
Explanation / Answer
Advantages of OOP
Object-Oriented Programming has the following advantages over conventional approaches:
Advantages of Structured Programming
One advantage of structured programming is reduced complexity. Modularity allows the programmer to tackle problems in logical fashion. Also, using logical structures ensures that the flow of control is clear.
Another advantage is an increase in productivity. Modularity allows multiple programmers to work on project at the same time. Modules can be re-used many times, which saves time and reduces complexity, but also increases reliability. It is also easier to update or fix the program by replacing individual modules rather than larger amounts of code.
Other Answer see below
Procedural Programming
Procedural programming uses a list of instructions to tell the computer what to do step-by-step. Procedural programming relies on - you guessed it - procedures, also known as routines or subroutines. A procedure contains a series of computational steps to be carried out. Procedural programming is also referred to as imperative programming. Procedural programming languages are also known as top-down languages.
Procedural programming is intuitive in the sense that it is very similar to how you would expect a program to work. If you want a computer to do something, you should provide step-by-step instructions on how to do it. It is, therefore, no surprise that most of the early programming languages are all procedural. Examples of procedural languages include Fortran, COBOL and C, which have been around since the 1960s and 70s.
Object-Oriented Programming
Object-oriented programming, or OOP, is an approach to problem-solving where all computations are carried out using objects. An object is a component of a program that knows how to perform certain actions and how to interact with other elements of the program. Objects are the basic units of object-oriented programming. A simple example of an object would be a person. Logically, you would expect a person to have a name. This would be considered a property of the person. You would also expect a person to be able to do something, such as walking. This would be considered a method of the person.
A method in object-oriented programming is like a procedure in procedural programming. The key difference here is that the method is part of an object. In object-oriented programming, you organize your code by creating objects, and then you can give those objects properties and you can make them do certain things.
A key aspect of object-oriented programming is the use of classes. A class is a blueprint of an object. You can think of a class as a concept, and the object as the embodiment of that concept. So let's say you want to use a person in your program. You want to be able to describe the person and have the person do something. A class called 'person' would provide a blueprint for what a person looks like and what a person can do. Examples of object-oriented languages include C#, Java, Perl and Python.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.