+ 1

Which is correct public class xxx or class xxx

Plz let me know which one used

7th Oct 2019, 3:38 AM
Naitik Jain
Naitik Jain - avatar
2 Answers
+ 2
It is depend on the use of class If your class is going to used by all the packages and outside package then it must be public Else If it is going to use only in current packer then it is in form Class xxx
7th Oct 2019, 6:18 AM
Programmer Raja
Programmer Raja - avatar
0
Xxx
5th Jan 2020, 12:55 PM
ดํา จงเจริญ
ดํา จงเจริญ - avatar