1 / 5

Understanding Abstraction and Modularisation in Real Computer Projects

Real computer projects involve multiple classes and complex details, making it hard to remember everything. By applying the "Divide & Conquer" approach, we break down problems into simpler sub-problems to solve. Similarly, cars are designed using abstraction and modularisation, with each part like engine and tyres being designed separately. Abstraction helps focus on the big picture, while modularisation divides problems into manageable parts. Learn how these concepts complement each other in Java programming.

vicky
Download Presentation

Understanding Abstraction and Modularisation in Real Computer Projects

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Abstraction & Modularisation

  2. Real computer projects are made of many classes. • Cannot remember all the details of a complex problem • We “Divide & Conquer” by breaking up the problem • By splitting the problem up into simpler sub-problems we reduce the complex problem into a group of simple problems that we can solve.

  3. A Car is made of many parts • A company designing a car will need to think about body shape, seats, engine, wheels. • The engine will need to be designed in more detail • Spark plugs will need to be designed • Tyres will also need to be designed. • Designer of the wheel will just take the minimum information about the tyres that are needed for the design. • Likewise the engine design will only take the specification of the spark plug • This is called abstraction

  4. Cars are manufactured by modularisation • Since no-one can keep all the details required to construct a car, it is divided into modules small enough to handle. • Modularisation and Abstraction complement each other • Modularisation breaks the problem into manageable parts • Abstraction is the ability to ignore the details for the big picture.

  5. Modularisation in Java is the creation of objects. Abstraction is a hierarchy of objects

More Related