Friday, October 4, 2019
Article question Assignment Example | Topics and Well Written Essays - 250 words
Article question - Assignment Example One of the major disadvantages of structured programming is redundancy of code. Since the program code is divided into modules therefore, there is a high possibility that the same code can be repeated in different modules. The perceived preference of object oriented languages over the more structural programming languages in industry today is due to some chief attributes of the object oriented programming paradigm. These attributes are encapsulation, information hiding and inheritance. These characteristics make programming easier in this paradigm. The object oriented programming model better reflects the human way of thinking and conceptualizing. The reason is that several objects are made while coding a program. For instance, a class is made on ââ¬Å"personâ⬠. Then from this class different objects can be made like student, teacher, employee etc. this is similar to the thinking of mankind. 1. Information Hiding: Through information hiding dependencies among modules is reduced. It means that if in a home two children are given separate rooms and they are restricted to enter in the otherââ¬â¢s room then each of them are only concerned with their own room and they donââ¬â¢t know the things of the other. 2. Encapsulation: It is communication between different things. For example if a person goes to a restaurant and orders rice to waiter. Then there is no communication between the person and cooker but through rice they are linked to each other. 3. Inheritance: 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. 4. Polymorphism: It means implementation of same thing in different ways. For example a kid asks his mother for meal. One way to is that mother serves the meal on the table while the other way is
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.