Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Discuss the advantages and disadvantages of both the structured and object-orien

ID: 3621390 • Letter: D

Question

Discuss the advantages and disadvantages of both the structured and object-oriented (OO) paradigm in programming. Explain the perceived preference of OO languages over the more structural programming languages in industry today. Does the OO paradigm better reflect the human way of thinking and conceptualizing? Why or why not? Identify five key OO concepts and explain them as if you were communicating with a non-programmer with a limited technology background, using non-programming, non-computing, real-world analogies. (For example, you could say that the technique of “inheritance” is analogous to the inheritance of biological traits from parent to child in that certain characteristics and physical structures carry from one generation to the next.)

Please put your references at the bottom  of your answer.

Explanation / Answer

riting software that supports a model wherein the data and their associated processing (called "methods") are defined as self-contained entities called "objects." Object-oriented programming (OOP) languages, such as C++ and Java, provide a formal set of rules for creating and managing objects. The data in an object model can be stored in the traditional table structure of a relational database (see O-R mapping) or, if the object model is very complex, in an object database, which is designed to hold object data (see object database). Encapsulation, Inheritance and Polymorphism There are three major features in object-oriented programming: encapsulation, inheritance and polymorphism. Encapsulation Enforces Modularity Encapsulation refers to the creation of self-contained modules that bind processing functions to the data. These user-defined data types are called "classes," and one instance of a class is an "object." For example, in a payroll system, a class could be Manager, and Pat and Jan could be two instances (two objects) of the Manager class. Encapsulation ensures good code modularity, which keeps routines separate and less prone to conflict with each other. Inheritance Passes "Knowledge" Down Classes are created in hierarchies, and inheritance allows the structure and methods in one class to be passed down the hierarchy. That means less programming is required when adding functions to complex systems. If a step is added at the bottom of a hierarchy, then only the processing and data associated with that unique step needs to be added. Everything else about that step is inherited. The ability to reuse existing objects is considered a major advantage of object technology. Polymorphism Takes any Shape Object-oriented programming allows procedures about objects to be created whose exact type is not known until runtime. For example, a screen cursor may change its shape from an arrow to a line depending on the program mode. The routine to move the cursor on screen in response to mouse movement would be written for "cursor," and polymorphism allows that cursor to take on whatever shape is required at runtime. It also allows new shapes to be easily integrated. OOP Languages Used for simulating system behavior in the late 1960s, SIMULA was the first object-oriented language. In the 1970s, Xerox's Smalltalk was the first object-oriented programming language and was used to create the graphical user interface (GUI). Today, C++ and Java are the major OOP languages, while C#, Visual Basic.NET, Python and JavaScript are also popular. ACTOR and Eiffel were earlier OOP languages. The following list compares some basic OOP terms with traditional programming. See object technology and object-oriented DBMS. OOP Traditional Programming class description of data + processing object (instance) actual data + processing attribute actual data (a field) method function that processes a particular structure message function call instantiate allocate a structure Object Modeling When information systems are modeled as objects, they can employ the powerful inheritance capability. Instead of building a table of employees with department and job information in separate tables, the type of employee is modeled. The employee class contains the data and the processing for all employees. Each subclass (manager, secretary, etc.) contains the data and processing unique to that person's job. Changes can be made globally or individually by modifying the class in question.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote