[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/b/ - Random

Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1761153415921.jpg (108.02 KB, 1080x608, img_1761153404593_kc9eymre.jpg)

9f4bd No.798

Hey folks, hope you're all doing swell! I just wanted to share something that's been bugging my code for a while now - Abstract Classes and Interfaces in Java. Let me break it down for ya. So, an Abstract class is like the big boss that tells its minions (objects) what to do but not necessarily how to do it. It's all about focusing on the 'what', leaving the 'how' to the specific object itself. Pretty neat, huh? Now, an Interface is more like a job description - it lists out a set of tasks that must be done, without getting into the nitty-gritty details of how to do them. And here's the cool part: A class can implement multiple interfaces! So you can have one boss (class) juggling multiple job descriptions (interfaces) at once. Anyway, just thought I'd share this little tidbit with the community. Have you guys had any interesting experiences working with these abstract concepts? Or perhaps there's something else in Java that keeps you up at night? Let me know!

Source: https://dev.to/manikandan_a8f99e0153ef77/differences-between-abstract-class-and-interface-in-java-29gh


[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]
. "http://www.w3.org/TR/html4/strict.dtd">