Hide and seek!
🤷♂️ When you make your favourite espresso, you don't really care about the sounds that are coming out of the coffee machine and what happens inside.
☕️ You only care about pressing a button and getting your coffee poured into the cup.
🤝 This approach is also found in software development.
Say you're creating an application that's writing some input text to a file.
The client using your application, doesn't need to know how you are actually doing it and which type of
FileWriter are you using.
He only cares about providing you the input and receiving the created file.
The way this is achieved is by using
Abstract classes. 🧩
Let's see it in action! 🚀