|
| Total Answers and Comments: 9 |
Last Update: August 25, 2006 Asked by: suresh |
|
| | |
|
No best answer available. Please pick the good answer available or submit your answer. | |
March 06, 2006 23:30:18 | #2 |
| anup |
|
|
RE: can we declare class as private?what will ha...
| Hi We can declare class as private. Only top level class can't be private. public class PrivateClassTest { private class PrivateClass{ }} |  | | Is this answer useful? Yes | No | | |
|
| |
|
March 13, 2006 00:36:30 | #3 |
| madhavendra |
|
|
RE: can we declare class as private?what will ha...
| we can declare java class as private . But the tat class wont b accesslible from its outer scope like public class B{ // member variables and methods private class C{ // member variables and methods } } now the prob wid dis is only the members of class B can access dis class C and by OOP design we want more reusability of code which cant b possble in dis case |  | | Is this answer useful? Yes | No | | |
|
| |
Go To Top
|