Good evening have class
class A { //куча полей public A(int a) { //куча кода } public A(double a) { this = new A(Math.Round(a)); // вот тут мне говорит, что так нельзя } } In the second constructor, you need to implement absolutely the same thing as the first, but with a rounded value. There may be a large number of fields, so I don’t want to do this using a separate method.
How to make the second constructor work? I know that it is possible through inheritance, but how to manage without it in this situation?