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
What happens if constructor of class A is made private?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What happens if constructor of class A is made private?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!