Notifications
Announcements
No record found.
Hi All,
Please check below points:
1. If i have one interface class and i want to extends interface class so can i extends?
2. If i have one abstract class and i want to implements Abstract class so can i implements?
Thanks & Regards,
Rahul.
Did you try it yourself?
1) Create a class that extends the interface class. Do you notice some issues / errors?
2) Create a class that implements the abstract class. Do you notice some issues / errors?
Dear Mäenpää,
Yes i try it myself and i am getting some error.
But in standard i can see 'RunBaseBatch' class, 'RunBaseBatch' class is a Abstract class but this class is doing extends and implements both ?
Would you mind sharing more details about "some error" (the exact error message would be nice) as well as your code? That would help us understand what might be wrong in your situation.
Thanks!
Interfaces and classes are technically two different things. Interfaces merely describes method that a class may have; they're not classes by themselves.
You can extend (= inherit from) classes, but not interfaces. You can implement interfaces.
Note that a class always has just a single parent class, but it can implement any number of interfaces.
Thanks Martin, for your reply.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 660 Most Valuable Professional
André Arnaud de Cal... 549 Super User 2025 Season 2
Sohaib Cheema 307 User Group Leader