InterviewSolution
| 1. |
How To Create An Object For Private Class? |
|
Answer» In general we can not CREATE object for a private class, but we can ACCESS STATIC method of a private class so call that method using its class name and IMPORT that object. For example take one static method with an exporting parameter inside private class and WRITE object creation code in that static method and export that object. In general we can not create object for a private class, but we can access static method of a private class so call that method using its class name and import that object. For example take one static method with an exporting parameter inside private class and write object creation code in that static method and export that object. |
|