What is the difference between Abstract Class and Interface
Answer Posted / guest
An abstract class can have instance methods that implement a
default behavior. An Interface can only declare constants
and instance methods, but cannot implement default behavior
and all methods are implicitly abstract. An interface has
all public members and no implementation. An abstract class
is a class which may have the usual flavors of class members
(private, protected, etc.), but has some abstract methods.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the difference between replace and replace all?
What is the right data type to represent a price in java?
What are the advantages and disadvantages of reference counting in garbage collection?
Explain the difference between comparator and comparable in java?
Explain about member inner classes?
How many characters is 2 bytes?
What is api in java?
What is the purpose of file class?
What is meant by oops concept in java?
Why declare Main() method as a static in java ?
What is the purpose of object oriented programming?
what is meant by abstract class?
Write a method that will remove given character from the string?
What does void * mean?
Does chrome use java?