Hi, im just a bit confused as to why we declare the visibility as public (+) given that it was not explicitly mentioned. I understand that if the code does not mention what the visibility is, its safe to assume that it's public hence the answer makes sense following this logical flow. But wouldn't it be safer not to put anything as this matches the code better? thanks in advance :)
Hi, im just a bit confused as to why we declare the visibility as public (+) given that it was not explicitly mentioned. I understand that if the code does not mention what the visibility is, its safe to assume that it's public hence the answer makes sense following this logical flow. But wouldn't it be safer not to put anything as this matches the code better? thanks in advance :)