What is public access of a class?
40 Likes
When a class is declared with public access specifier it is said that the class is publicly accessible. A publicly accessible class is visible everywhere both within and outside its package. For example:
public class Example { //Class definition }
Answered By
22 Likes
What is the purpose of the new operator?
Can a class be referred to as user defined data type? Comment.
How are private members of a class different from public members?
Mention any two attributes required for class declaration.