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 abstraction encapsulation?

657


What is encapsulation selenium?

554


What are classes oop?

598


Plese get me a perfect C++ program for railway/airway reservation with all details.

3429


What is object in oops?

615






What is a class and object?

600


write a programe to calculate the simple intrest and compund intrest using by function overlading

1670


write a program to find 2^n+1 ?

1552


What is polymorphism and its types?

598


Describe these concepts: Polymorphism, Inheritance and Abstraction.

615


What is abstraction oop?

625


What do you mean by abstraction?

618


How do you answer polymorphism?

577


hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.

1542


What are the 3 principles of oop?

619