90 likes | 269 Vues
This article explores the differences between object-oriented and structural approaches in software development. It emphasizes the importance of modular design and top-down decomposition, highlighting how poorly defined subprograms can lead to maintenance issues. The object-oriented approach focuses on using objects as models of real-world entities, promoting encapsulation and polymorphism to streamline problem-solving and interaction. The advantages of these methodologies, such as seamless movement through analysis, implementation, and design phases, are discussed, alongside practical examples for better understanding.
E N D
Structural Or Object Oriented Approached • Structural Approach • Think for Modular Driven Design • Top Down Decomposition
Sub Program Sub Program Sub Program Sub Program Sub Program Structural Main Program ??? AHA…. And Sub Program can devided into Smaller sub program too Poor decomposition is problem usually appearance in this approached, hard to maintain a program whith this approached Think to solve main problem or main program divided into subprogram Thinking How To Solve The Problem
Object Oriented • Think the main concept is object • Object is a model from reality(problem domain)
Object Oriented Approached Problem Domain Object Object Object Object All Object, interaction to solve taks the problem domain
The Advantage Object • Seamless Movement Between Stages Analysis Implementation Design Object
The Advantage Object • Encapsulation To Access data another object must send message to execute public method object Another Object Cant Direct Access to Data Method Atribute or Data Method Method
Vehicle Speed Color Start Polimorphism Car Motorcycle Start Start start method can build in child class