16 Replies
Guys how can i call a non static method in a interface?
You can't™️
ouff
That method comes from the interface, not the type
ConfigRegistry
itselfyea but i extend from it
And in general you shouldn't do this in interfaces, an interface should be a contract and nothing else
and also you can just shorten the definition of
Initialize
to oh yea thx
What you could do is have an abstract class
RegistryBase<B>
which implements the interface and defines the Register
methodah yea
good idea
btw
i not want that Initialize need added
just as a option
ah
is it possible without body?
well, sure, then you could give it an empty body
like small how you did it?
ok
yea well
👍
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.