Elektrine lite

← Feed

@AT1ST@mstdn.ca

Post #2270890

2026-05-08 19:29 UTC

@phillmv@hachyderm.io @alwayscurious@infosec.exchange @brib@bribstodon.xyz @jneen@unstable.systems In Java both an interface and an Abstract Class could satisfy the type, though an Abstract Class IIRC does need a concrete extension of it to construct it as an object to use. That said, the Abstract Class would allow you to say "There is a function I do implement, and there is a function I just define and it's up to classes extending this abstract class/inheriting this abstract class to define.". I think you are probably right though that one reason I also find myself disliking mocks is that it's a *lot* of work to do in Java.

Replies (1)

  • @AT1ST@mstdn.ca 2026-05-08 19:30

    @phillmv@hachyderm.io @alwayscurious@infosec.exchange @brib@bribstodon.xyz @jneen@unstable.systems (Though to my last point, just about *everything* is a lot of work in Java; Hello World programs are a lot of work in Java.)

    Open ##2270891