Question

In: Computer Science

Assignment Instructions: Please respond with at least 100 words. Your initial post should address each of...

Assignment Instructions:

Please respond with at least 100 words. Your initial post should address each of the topic below thoughtfully.

Topic: Many companies use internal programs that were implemented before object-oriented programming came into widespread use. What are the issues involved in moving their systems to an object-oriented approach?

Solutions

Expert Solution

Structured Programming is the type of programming in which the entire is designed.in a structured control flow form. The goal is to divide the program into variables, data structures and subroutines. This is intended to solve one particular problem. It is a top-to-down approach. It is an approach to develop one solution to one problem. The whole program is a single module. Now suppose we want to add additional modules to the program, it would be a complicated task as we have to change the entire code, data, dependencies and functionality,

Object Oriented Programming is the based on OOPs conceps of data and code together in a single Object. The data and the code are both encapsulated as a single unit. Object Oriented style of prgramming breaks down the program into modules inter-dependant on each other or not-dependant. Here to add a functionality is easy as we do not have to modify the entire code. Also each member of a software team can work independantly on every module. These independant modules can be used anywhere else in a different program. This helps in code reusability. The overall length of the code is reduced. Also we can connect different API's to each other though OOPs.

Object: Object is an basic entity with a behaviour and data. Every instance of a class is an Object. For ex. every single employee is an Object for a company.

Class: It is an user defined data type from which Objects are created. Instances of class are Objects. Ex. Class 'Employee' and its Object 'e1'.

Moving from structural to object-oriented approach:

  • Here we think about everything as if it is a real-world object and has some behavior. An object has a structure and its behaviour are its methods. But in functional programming, we have data and functions as different entities.
  • In a good object-oriented world, every object does one thing and knows as little about other objects as possible. OOPs has the property of encapsulation that prvides hiding of data. This is similar to having functions with no side effects in functional programming and depending only on their inputs, like a pure function.
  • Data is mutable in OOPs but immutable in structured programming.

1) The key difficulties are that we have to change the functions, dependancies, and it requires a lot of work, As in case of structured programming the whole program is a single module, so the changes to be affected require a hectic work. If we change a functionality, our entire program needs updation and changes.

2) The functional calls from one class to another class is done thorugh accessing objects of the class, Thus when shifting from structured programming to OOPs, the complexity of the code increases. When we have just a single functionality then the structuring of the code is easier as in case of structured programming. But when we have to understand in case of OOPs, we have to upgrade and understand all the technologies inside the different modules. Thus the inter-dependebility achievement is a harder task.

3)The core OOPs concepts are to be used (encapsulation, polymorphism, abstraction, inheritance). To convert from a simple structured format which supports tight-coupling, to a loose-coupled system is a challenge. Loose-coupling implies that the objects are loosely dependant of each other. Whereas tight coupling implies that objects are highly dependable on each other. Loose coupling can be achieved by use of Interfaces.

Conclusion: Though OOPs provides some benefits when related to traditional structured programming concepts, still it has some complexities. The approach used, whether structured, or OOPs related should be dependant on the problem.


Related Solutions

6. Assignment Instructions: Please respond with at least 100 words. Your initial post should address each...
6. Assignment Instructions: Please respond with at least 100 words. Your initial post should address each of the topic below thoughtfully. Topic: Do you think there might be a way to directly access commonly used operators, such as the arithmetic operators or the stream operators, with enumeration types. For example, would overloading these operators be a good solution? Why or why not?
8. Assignment Instructions: Please respond with at least 100 words. Your initial post should address each...
8. Assignment Instructions: Please respond with at least 100 words. Your initial post should address each of the topic below thoughtfully. Topic: What do you think some of the relevant issues to consider when determining whether to use protected or private members in a base class. Are there any risks involved with using the protected member access specifier instead of the private member access specifier?
4. Assignment Instructions: Please respond with at least 100 words. Your initial post should address each...
4. Assignment Instructions: Please respond with at least 100 words. Your initial post should address each of the topic below thoughtfully. Topic: What are some ways to prevent out of bounds errors when reading input into C-strings?
5. Assignment Instructions: Please respond with at least 100 words. Your initial post should address each...
5. Assignment Instructions: Please respond with at least 100 words. Your initial post should address each of the topic below thoughtfully. Topic: With the advent of object-oriented programming, is it ever necessary to use C-type structs rather than classes? If so, when? What are the advantages or disadvantages of each approach?
please respond to this assignment with a post of a minimum of 400 words. According to...
please respond to this assignment with a post of a minimum of 400 words. According to SHRM, looking at where recruiters sourced their recent hires underscores the value of healthy social media life. About two-thirds of organizations found new employees through social media, mainly LinkedIn and professional or association networking channels. What will companies need to do in order to actively use the Internet as a recruiting tool as they compete for qualified applicants? In addition to LinkedIn, what other...
Please respond to the discussion post 1 and 2 in your own words: (Must respond to...
Please respond to the discussion post 1 and 2 in your own words: (Must respond to both) Discussion post 1 How do you think most people see the majority of human interactions, as opportunities to compete or to cooperate? I believe that the majority of human interactions are seen as opportunities to compete. The reason I say this is the competitive nature that we have in us as humans. This nature is exemplified daily in our school and our work....
Please respond to the discussion post 1 and 2 in your own words: (Must respond to...
Please respond to the discussion post 1 and 2 in your own words: (Must respond to both) Discussion post 1 Organize and review all your work-to-date. What stands out to you that is potentially of strategic relevance? Think in particular about how your organization is, or can be, or should be different!How will being (more) different in this way potentially create competitive advantages for the organization? Is this a matter of completely reinventing the organization or of enabling it to...
Address all of the following as your Main Post, using at least 250 words: What is...
Address all of the following as your Main Post, using at least 250 words: What is a job order cost system? Describe how you think a job order cost system might be used for professional service businesses. Describe factory overhead costs and give one example of an overhead cost. Lastly, write about one definition or additional concept related to job order costing
In 2-3 paragraphs, respond to the following. Your initial post should be substantive and be supported...
In 2-3 paragraphs, respond to the following. Your initial post should be substantive and be supported by course concepts. Your initial post is due by Wednesday to allow other students to respond. Should the United States government be required to have a balanced budget? What are the long-term implications of continued government indebtedness? cite references.
In 2-3 paragraphs, respond to the following. Your initial post should be substantive and be supported...
In 2-3 paragraphs, respond to the following. Your initial post should be substantive and be supported by course concepts. Your initial post is due by Wednesday to allow other students to respond. How will an understanding of macroeconomics affect your daily life?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT