I solved the task but I don't understand where the constructor method is. Don't you need one to make an object?
I expected this:
public Man() {
}
Where is constructor method()?
Resolved
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
Agent Smith
13 August 2020, 10:59
If you don't write default constructor for your class - compiler will automatically provide one for you. You will find more information about this in future lessons. ;)
0
Adil
13 August 2020, 11:07
Thank you for your answer (and also thanks to the compiler for all the hard work).
0