suppose we have an interface & that interface contains five
methods. if a class implements that interface then we have
to bound that to give tha definition of all five methods in
that class. If we declare that class as abstract then can
we call only two methods to give the deinition of that
method & i don't want to give the definition of all the
methods? can it possible
Answer Posted / srini
i think we can accomplish by using adapter design pattern.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
explain autoboxing in java?
What is an example of a conditional statement?
What are the types of inner classes (non-static nested class) used in java?
What is the difference between break and continue statements?
Can abstract class have private constructor?
What are the differences between include directive and include action?
What is java util collection?
What is singleton service?
What is the meaning of nullable?
Explain abstract class in java?
Can a class with private constructor be extended?
What is an infinite loop? How infinite loop is declared?
Can we override constructor?
What is the purpose of format function?
Is string passed by reference in java?