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
A sum 's' is divided into 4 parts. Second person gets Rs 10 more than first.3rd person is Rs 10 more than second, 4th is 10 more than 3rd. How much amount do 1st person get?
When the angle a, b, c, d are given find ‘x’?
If two pencils cost 8 cents, then how much do 5 pencils cost?
A train blows a siren one hour after starting from the station. After that it travels at 3/5th of its speed it reaches the next station 2 hours behind schedule. If it had a problem 50 miles farther from the previous case,it would have reached 40 minutes sooner. Find the distance between the two stations .
In how many rows will 200 Miranda bottles be placed, if 200 Miranda bottles are stacked in such a way that there are 20 bottles in the bottom, 19 in the next row, 18 in the row next and so on?
Four circles are drawn from the corners of a square of area 49 cm2. Find the area of 4 circles outside the square (they didn't mention that circles have radius=1/2 side of a square)?
There are coins of Rs.5, 2, 1,50p, 25p, 10p, 5p. each one has got a weight. Rs 5 coin weighs 20gms.find the minimum number of coins to get a total of 196.5gms.
CALIBRATION PROCEDURE FOR HPLC
Each row of letters or numbers has a rule connecting them. Write the next number or letterin the brackets. 124 , 62 , 60 , 30 , 28 , 14 , (_ _ _)
There are 19 red balls and one black ball . Ten balls are put in one jar and the remaining 10 are put in another jar. what is the possibility that the black is in the right jar.
If the circumference of a circle is 100 units, Then what will the length of the arc described by an angle of 20 degree ?
There are 40 seats in a bus. People agree to share the money for the number of seats. The total money comes to 70.37. How many seats were free?
Rajdhani Express starts from Delhi at 12:00 pm and reaches Chandigarh at 2:30 pm and Doronto Express starts from Chandigarh at 12:15 and reach at Delhi at 2:15 . What will be the time when both the trains will cross each other?
Y catches 5 times more fishes than X. If total number of fishes caught by X and Y is 42, then number of fishes caught by X?
Subbu starts from a point O at 10.00 am , overtakes Ajay, who is moving in the same direction, at 11.00 a.m. and Bhuvan moving in the opposite direction at 12.00 (noon). If the speed of Bhuvan is one fourth the speed of Subbu, at what time will Ajay and Bhuvan cross each other.