Restrict access to inherited methods
Filed under Goibibo
The question
Given a parent class A with public functions, how do you prevent specific functions from being accessible in child classes B and C without being language-specific?
No write-up yet. Related questions below have one.
Related Goibibo questions
Collected from public candidate posts and coding forums. Updated Nov 2026.