Abstraction in Java
Abstraction — show what, hide how. abstract class + abstract method = must implement in child.
You cannot write new Shape() if Shape is abstract.
Interface is also abstraction (can-do contract).
Write one tiny example for Abstraction. Compile, print one result, and say the output out loud before you type.
Use Abstraction only when the problem needs it. Don’t force it into every program. Know one beginner trap.
Let's take this on the board with one tiny Main class — no extra files. Abstraction in Java — output: 12.56. Shape has no body for area(); Circle supplies it. new Shape() would not compile. Start from main, go line by line, and stop at each print. That output is the proof for Abstraction.
Say: new Shape() fails; new Circle(2).area() works.