class{
...
...
interface myinterface{
...
...
}
abstract class{
..
..
}
...
..
..
}
is this possible to write "Interface and/ or Abstract class
inside a class ?
if possible whcich one is possible
is only interface?
is only abstract?
Answers were Sorted based on User's Feedback
Answer / karunakaran
I have tried it.It is working.We can have abstract class
and/or interface inside a class.
| Is This Answer Correct ? | 13 Yes | 0 No |
Answer / ranganathkini
Yes it is possible to write nested interfaces/abstract
classes inside another class.
Hope it is possible! :-)
| Is This Answer Correct ? | 12 Yes | 1 No |
Can we inherit the constructor in a Class?please give one example.
Can we override the main method?
Can a static class implement an interface?
what are the difference between Java and .Net?
What are the main features of java?
Why is string builder not thread safe?
Difference between string s= new string (); and string s = "abv";?
Can there be an abstract method without an abstract class?
Can a class declared as private be accessed outside it’s package?
What is deserialization and how do we do deserialization?
Differece between class and generic class?
Is it possible to do method overloading and overriding at a time