watz the difference between abstract class and interface?
Which one u ill choose as a designer?

Answer Posted / ajay roy

Abstract Class is the one which contains atleast one
abstract method and other method may not be essentially
abstract. However, interface always have only method
signature in it. We can not have methods with
implementation in interface unlice abstract class.

When designer wants to use common property of a system then
he should go with abstract method. Because in abstract
method he can have implementation of common properties
along with signature of other method which can be
implemented as per need.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does next mean in java?

533


Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?

542


What are the advantages of user defined functions?

552


What is the format specifier?

516


What does sizeof return?

553






what is meant by HQL?

639


If try block is successfully executed, Then Is Finally block executed?

606


what is the purpose of "virtual"?

564


How big is a pointer?

546


What is byte value?

552


Why singleton class is used in java?

566


Can we use this () and super () in a method?

527


Which category the java thread do fall in?

567


What is hotjava?

552


What does localhost mean?

494