What methods should be private?

Sophia Foster | 2023-05-05 12:30:15 | page views:1700
I'll answer
Earn 20 gold coins for an accepted answer.20 Earn 20 gold coins for an accepted answer.
40more

Benjamin Evans

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

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.
ask:3,asku:1,askr:137,askz:21,askd:152,RedisW:0askR:3,askD:0 mz:hit,askU:0,askT:0askA:4