Originally posted by Dharmender Singh:
I want to that why we can not declare a class with private and protected modifiers.
What do you see as the access for a private class:
private class MyClass {
}
what conditions would you have to meet to be able to instantiate objects of this class?
For a protected class
protected class MyProtectedClass {
}
do you want to make a class that cannot be instantiated, but only derived from? I believe that is achieved by declaring a class abstract. Or do you have some other usage for a protected class?
[ August 11, 2007: Message edited by: Red Smith ]