diff between Abstract class Interfaces?

Answer Posted / dhanya

Any class with one or more abstract method is called an abstract class.It can have data attributes,concrete methods and constructors.Abstract class can differ the implementation
by declaring the method to be abstract,and a Java interface declares only the contract and no implementation.All methods declared in interface are public and abstract.All attributes are public,static and final.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a class and object?

792


Why is oop useful?

815


write a program to find 2 power of a 5digit number with out using big int and exponent ?

2130


can inline function declare in private part of class?

3968


What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?

2305


How is polymorphism achieved?

770


Which is better struts or spring?

807


What are the 4 pillars of oop?

887


Why multiple inheritance is not allowed?

810


What is encapsulation in oops?

756


Which is not an object oriented programming language?

731


What is object and class in oops?

780


Explain the concepts involved in Object Oriented programming.

869


Which language is not a true object oriented programming language?

868


What are the 3 principles of oop?

832