Difference between interface and abstract class?

Answer Posted / m.shanmuga sundaram rjnsoftwar

There are some subtle differences between an abstract class
and an interface

1)
A class can inherit multiple interfaces
A class can inherit only one abstract class

2)
An interface does not contain any access specifier,fields
and code. By default the access specifier is public.

An abstract class can contain any access specifier,fields
and code.

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

differences between qtp10.0 and 11.0 ?

1808


what are the missinschema properties and should we pass primary key in select command

1413


Given a set. Write the pseudo code to get all the subsets for the given set. Eg. Input : {1,2} Output : (),(1),(2),(1,2)

2226


I'm new to ABAP. What is Module pool in SAP?

2117


Given an array of size n. It contains numbers in the range 1 to n. Each number is present at least once except for 2 numbers. Find the missing numbers.

784






What is the entry point function of a DLL?

615


How to connect the .accdb database file of microsoft access to the Visual Basic 6.0 forms?

3691


5. How do you round the addition or subtraction of two numbers in assembler?

1772


What ports must be open for DCOM over a firewall? What is the purpose of Port 135?

7170


I want sample papers for NIC Examination. Plz send them to my mail Id das.neelam@gmail.com . Plz send it today, tomorrow i've the exam.

1563


In loading programs into memory, what is the difference between load-time dynamic linking and run-time dynamic linking?

1608


how to stop execution of step 3 in a job mainframe

1709


which worker is involved in all the phases of SDLC?

1699


what is web service in java? have u use before.

1624


What are the Short cut Keys of Tally ERP?

1769