Skip to content
Discussion options

You must be logged in to vote

A constructor must either call a base constructor or another constructor on the current class. It cannot call both as the base constructor must only be called once.

You can very easily solve your problem above with some minor refactoring. More complicated examples can be solved through helper methods.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by YairHalberstadt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1798 on October 18, 2020 08:57.