albertgao
03/21/2018, 12:28 AMa.b.c
, I have an abstract
class named BaseUser
which I use it to share some code. But I want this class BaseUser
to be internal in the a.b.c
. Such that, I can create User:BaseUser
in a.b.c
. But the user of package can’t refer a.b.c.BaseUser
. I tried the protected
modifier. Not work, when I try to build, it said This type is final, so it cannot be inherited from
, Cannot access 'BaseUser': it is protected in 'a.b.c'
and 'public' subclass exposes its 'protected (in ?)' supertype BaseUser
.
No luck with internal
too
How to make this work? 🤔groostav
03/21/2018, 12:35 AMalbertgao
03/21/2018, 12:38 AMgildor
03/21/2018, 2:21 AMalbertgao
03/21/2018, 3:28 AMgildor
03/21/2018, 3:29 AM