Can an inner class have its own properties and methods?
A. No, it can only access the outer class's properties and methods
B. No, it can only access the outer class's properties and methods and cannot have its own
C. Yes, but it can only access the outer class's properties and methods, not have its own
D. Yes, it can have its own properties and methods just like any other class
Answer: Option D

Join The Discussion