what kind of constructor is this?
Base b = 10;
it is wrong, it gives compile time error as we can't assign 10 to object b.
it is a normal constructor
it is a conversion constructor
it is a conversion constructor, which is used to convert 10 to type be Base.
Back To Top