Primary constructor on base class decorated with an access modifier #8395
Unanswered
dratkovic
asked this question in
Language Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to propose the ability to add access modifier in primary constructor i.e. public abstract class Base(protected string _test)...
Now if we write this:
we will have one protected field _test in the Base and Child can use it..
If we instead write it to have a primary constructor in Base class:
We will get _test string field in Base class and also one that overrides in the Child class..
Beta Was this translation helpful? Give feedback.
All reactions