Elektrine lite

← Feed

@gmazzap@phpc.social

Post #3506001

2026-06-30 23:18 UTC

@dseguy@phpc.social If it's public, it's easy https://3v4l.org/GGTeV#v

Replies (1)

  • @dseguy@phpc.social 2026-07-01 07:16

    @gmazzap@phpc.social Indeed, good answer. And my framing of the question was vague enough, so it applies here. There is no way to forbid a class (anonymous or not) to extend an abstract class (can't be final, right?) so this is a classic and useful trick (think tests). Now, I was considering reaching A::foo() from C. That happens when the class hierarchies grows a bit too much.

    Open ##3506000