I\'m new with Java and I\'m having trouble understanding the constructor issue, I have looked at many tutorials and still I\'m having difficult to understand why we use construc
Adding to the @brso05 answer,
This is also one of the ways:
public MyClass( int a) { } public MyClass( int a, int b) { } public MyClass( int a, String b) { }
And So on..It is the arguments which make difference, rest remains the same!