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


Please Help Members By Posting Answers For Below Questions

Differece between class and generic class?

568


How does predicate work in java?

543


How do you check if an arraylist is not empty?

579


What is the default value of an object reference declared as an instance variable?

544


What is the purpose of methodology?

641






What's the difference between comparison done by equals method and == operator?

548


What is definition and declaration?

530


What happens to a static var that is defined within a method of a class?

552


What are the three parts of a lambda expression? What is the type of lambda expression?

570


What is string and its types?

613


What is a stringbuilder?

513


What does the “static” keyword mean? Can you override private or static method in java?

637


Give me an example of array and linked list? Where they can be used?

559


How do you create a first line indent?

510


What is a website container?

509