What we have to do, when we don't want to implement all
methods of an interface?
Answers were Sorted based on User's Feedback
Answer / ravikiran(aptech mumbai)
instead of using interface make use of abstract class at
that moment
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / aditya mohata
we have to declare that class as an abstract class.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / somasundar m
We have to declare that class an abstract class by
declaring that particular unimplemented methods as abstract
method. And you can not create an instance for this class.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / vinaygeddannavar
YOU SHOULD NOT GO FOR THE INHERIT IN CHILD SPECIFIC CLASS
THATS THE BEST WAY... OTHERWISE IF YOU MAKE IT AS ABSTRACT
CLASS AGAIN YOU NEED TO INHERIT THAT CLASS IN CHILD CLASS OK.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / mallikarjun
Use another called implementing interface and that class can
be inherited to sub class. This process is called adapter
pattern
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the pillars of java?
What does java se mean?
Write a regular expression to validate a password. A password must start with an alphabet and followed by alphanumeric characters; its length must be in between 8 to 20.
what is the difference between ArrayList and Vector
19 Answers KPIT, Sasken, Satyam, Span Infotech, Wipro,
Why stringbuilder is not thread safe?
i need example for java abstraction. where we use abstraction and why we need abstraction.
What is CardLayout?
How will you reverse a link list without using recursion?
Realized?
what is difference Between Core Java and advance java
60 Answers HCL, HP, Sambalpur University, TCS, Vensai Technologies, Wipro,
Is Constructor possible in abstract class in java ?
Difference between concurrent hashmap and hashtable and collections