From the course: Java Object-Oriented Programming
Unlock the full course today
Join today to access over 23,200 courses taught by industry experts.
What is abstraction? - Java Tutorial
From the course: Java Object-Oriented Programming
What is abstraction?
- [Instructor] In software development we use abstraction to hide implementation complexity. This complexity could be from an algorithm, EPI or design. And the goal of abstraction is to generalize the features of a given system. If a software product uses abstraction it should be able to provide a user with an example input, output in a broad description of what the system does without going into the technical details. Consider someone making coffee with a pod coffee machine. The person knows they need to provide the machine with water and the specific coffee pod but they don't know exactly how the coffee is made. They don't need to know how the coffee machine works internally in order to brew a fresh cup of coffee. Someone else created the pod coffee machine to hide all the details of exactly how the coffee is made. If you want to make a cup of coffee, you just interact with the simple interface, providing the inputs…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
(Locked)
What is abstraction?1m 47s
-
(Locked)
Using abstract classes in Java to reduce code complexity5m 59s
-
(Locked)
Using interfaces in Java to provide conformity5m 1s
-
(Locked)
Discovering abstraction in Java source code4m 55s
-
(Locked)
Challenge: Leverage abstraction to write simpler applications1m 19s
-
(Locked)
Solution: Leverage abstraction to write simpler applications2m 58s
-
(Locked)
-