What happens if constructor of class A is made private?
(a) Any class can instantiate objects of class A
(b) Objects of class A can be instantiated only within the class where it is declared
(c) Inherited class can instantiate objects of class A
(d) classes within the same package as class A can instantiate objects of class A
This question was posed to me in homework.
I'd like to ask this question from Access Control topic in section Classes and Methods of Java
Select the correct answer from above options
Java questions and answers, Java questions pdf, Java question bank, Java questions and answers pdf, mcq on Java pdf, Java questions and solutions, Java mcq Test , Interview Java questions, Java Questions for Interview, Java MCQ (Multiple Choice Questions),Core Java Questions, Core Java MCQ,core java interview questions for experiencedcore java interview questions for 3 years experience,java programming questions,core java interview questions for freshers,java interview questions and answers for freshers, java programming questions and answers pdf, java interview questions for beginners