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
If all the natural numbers from 256 to 400 are written side by side to each other, a large natural number is obtained. How many times 6 appears in this large natural number?
Fifty minutes ago if it was four times as many minutes past three o'clock, how many minutes is it to six o'clock?
If the simple interest is 10.5 % annual and compound interest is 10 % annual, compounded annually, find the difference between the interests after 3 years on a sum of Rs. 1,000.
A father is 30 years older than his son however he will be only thrice as old as the son after 5 years what is father's present age ?
02: 1/3 of girls , 1/2 of boys go to canteen .What factor and total number of classmates go to canteen?
Person who decided to go to weekend trip should not exceed 8 hrs driving in a day. Average speed of forward journey is 40 miles/hour . Due to traffic in sundays ,in return journey average speed is 30mph . How far he can select a picnic spot ?
If Rs.1260 is divided between between A, B and C in the ratio 2:3:4, what is C's share?
12 Blacksox and 12 Whitesox mixed in a box,a pair of sox is picked at a time,in which pick how many pick ,to get the right pair(black&black or white&white)?
Imagine a rectangle.Its length=2*width.A square of 1 inch is cut on all corners so that the remaining portion forms a box when folded.the volume of the box is_____ cubic inches.find the original dimensions of the box.
the minimum of (2x+1)**2 + (x+2) is at x =
Each row of letters or numbers has a rule connecting them. Write the next number or letterin the brackets. N , O , M , P , L , Q , K , R , (_ _ _)
A coffee shop blends 2 kinds of coffee,putting in 2 parts of a 33p. a gm. grade to 1 part of a 24p. a gm.If the mixture is changed to 1 part of the 33p. a gm. to 2 parts of the less expensive grade,how much will the shop save in blending 100 gms.
What is the 8th term in the series 1, 4, 9, 18, 35, 68, . . .
one answer is 200/3 % it is perfectly correct wecannot recollec the prob. so place it blindly.
Find the difference of the minimum number of numbers required to form every number from 1 to 1234 and 1 to 4321.