Access modifiers declaration | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Access modifiers declaration

Can you declare multiple methods under a single access tag? i.e "public: method1 method2" or do you have to do "public: method1 public: method2"?

20th Mar 2017, 11:43 AM
Amit Goldstein
Amit Goldstein - avatar
1 ответ
- 1
You do it the first way. The second way is valid but why do you like it the longer way :))
20th Mar 2017, 5:19 PM
hdo
hdo - avatar