Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Declare methods protected instread of private #111

Open
NicolasAnquetil opened this issue Dec 18, 2018 · 0 comments
Open

Declare methods protected instread of private #111

NicolasAnquetil opened this issue Dec 18, 2018 · 0 comments

Comments

@NicolasAnquetil
Copy link

In FrontEnd, and FortranStream, many methods are declared private.
This prevents anybody from inheriting from these class and extending their behaviour.

For example, I wanted to have a FrontEnd that could parse from a String (for example using ByteArrayInputStream or something similar). One solution would be to inherit from these classes and change some of their methods. Because they are private, this is not possible and the only solution is to copy/change a lot of code :-(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant