what is difference between abstract class and interface?

Answer Posted / shubham soni

There is no difference in the functionality of these two.The
only difference is that a class cannot extend an abstract
class if it already is extending some other class.An
interface on the other hand can be implemented in any
situation which makes them very powerful.Also user defined
exceptions can be defined within an interface itself which
is not the case with an abstract class.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

A Father Has 7 Pennys With Him And 1 Water Melon Is For 1p, 2chickoos For 1p, 3 Grapes Foe 1p. He Has Three Sons. How Can He Share The Fruits Equally?

1443


2. Why would you choose a database system instead of simply storing data in operating system files? Give and explain advantages of using DBMS.

1017


In an exam, a girl scores 85% in one subject and 88 % in another subject. What percentage does she score in the third subject to get an average of 88% marks?

663


The ratio of length of a rod and its shadow is 1/sqrt(3). Find the angle of elevation.

830


In a company 30% are supervisors and 40% employees aare male if 60% of supervisors are male what is the probability that is randomly choosen employee is a male or female?

952






A clock with the hours round the face in Roman block numbers, as illustrated in the sketch fell down and the dial broke into four parts....

2012


What would be the simple interest obtained on an amount of Rs. 5580 at the rate of 6.5 % p.a. after 5 years?

1369


A person starts walking at a speed of 5km/hr through half the distance, rest of the distance he covers with a speed 4km/hr. Total time of travel is 9 hours. What is the maximum distance he can cover?

1165


In covering a distance of 30 km, abhay takes 2 hours more than sameer. If abhay doubles his speed, then he would take 1 hour less than sameer. Abhay's speed is?

729


there are 27 coins in which one is heavier than rest(all equal weight). how many measurements are needed to isolate that odd one.

761


Need Questions Related To Quants

1335


The difference b/w the compound interest payble half yearly and the simple interest on a certain sum lent out at 10% p.a for 1 year is Rs 25. What is the sum?

823


it has 20 mixutre conatins mil and water in the ratio 3:5,replace 4 litres of mixture with 4 litres of water what is the final ratio of milk and water.

893


a father is 30 times more than his son however he will be only thrice as old as the son what is father's present age ?

696


Find the value of @@+25-++@1..., where @ denotes "square" and + denotes "square root".

707