+ 1
Android Development
Whether it's an application or a user, how does blocking technology work?
1 Answer
+ 1
if you have more choices, possible the best way is to use ENUM, and set there a BOOLEAN.
but it depends on a language, library/framework,
for instance: in Laravel:
# inside app/Model/
protected $fillable = [];
protected $hidden = [];
in java/kotlin you have similar things, but there you have 4 visibility modifiers:
java: [default, private, protected, public]
kotlin: [private, protected, internal, public]
you have to know what visibility modifiers means + how enum and boolean work