Is return type not a part of the method signature?The second pair of methods will not compile correctly, since their method signatures are same
The second pair is:
2.
void perform_work(int time){ }
int perform_work(int speed){return speed ;}
Moderator: admin
Is return type not a part of the method signature?The second pair of methods will not compile correctly, since their method signatures are same
Users browsing this forum: No registered users and 46 guests