What methods should be private?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Works at the International Seabed Authority, Lives in Kingston, Jamaica.
Methods that are private can only be called by methods within the same class or within the same "module". Methods are not commonly made private; usually they're made protected so that children can call them, or public so that other code can call them.
2023-05-05 12:30:15
评论(499)
Helpful(122)
Helpful
Helpful(2)

Ava Gonzales
QuesHub.com delivers expert answers and knowledge to you.
Methods that are private can only be called by methods within the same class or within the same "module". Methods are not commonly made private; usually they're made protected so that children can call them, or public so that other code can call them.