📘 Premium Read: Access my best content on Medium member-only articles — deep dives into Java, Spring Boot, Microservices, backend architecture, interview preparation, career advice, and industry-standard best practices.
✅ Some premium posts are free to read — no account needed. Follow me on Medium to stay updated and support my writing.
🎓 Top 10 Udemy Courses (Huge Discount): Explore My Udemy Courses — Learn through real-time, project-based development.
▶️ Subscribe to My YouTube Channel (172K+ subscribers): Java Guides on YouTube
extends Java Keyword Examples
abstract class Animals {
/** All kind of animals eat food so make this common to all animals. */
public void eat() {
System.out.println(" Eating ..........");
}
/** The make different sounds. They will provide their own implementation */
abstract void sound();
}
class Cat extends Animals {
@Override
void sound() {
System.out.println("Meoww Meoww ........");
}
}
class Dog extends Animals {
@Override
void sound() {
System.out.println("Woof Woof ........");
}
}
public interface A{
}
public interface B extends A {
}
Comments
Post a Comment
Leave Comment