what is difference between abstract class and interface?
Answers were Sorted based on User's Feedback
Answer / bipin chandra sai.s
abstract means when don't have definition but it has only
declaration is called abstract class,and abstract class
also donot have any objects.
interface means in the concept of multiple inheritance we
use interface for declaring the subclasses instead of class
declaRATION we use interfaces
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / 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 |
A father F has 5 sons, p,q,r,s,t. Not necessarily in this order. Two are of same age. The eldest and youngest cannot be twins. T is elder to r and younger to q and s has three older brothers. who are the twins?
Q)There are two pipes A and B. If A filled 10 liters in an hour, B can fill 20 liters in same time. Likewise B can fill 10, 20, 40, 80, 160…... If B filled in 1/16 of a tank in 3 hours, how much time will it take to fill the tank completely?
if the ratio of men to women in a particular dormitory is 5:3 which of the following could not be the number of residents in the dormitory
Complete the series. 3, 8, --, 24, --, 48, 63
Which of the following will be the changed form of the word OBLIQUE when the word is written again by substituting each vowel by the 2nd letter following it in the English alphabet and substituting each consonant by the 3rd letter following it in the English alphabet? (1) MEDGTSD (2) RDNLSXH (3) QEOKTXG (4) QEOKTWG (5) None of these
A number of children are standing in a circle. They are evenly spaced and the 6th child is directly opposite the 20th child. How many child are there altogether
4,5,9,27,123,_ what is next number?
11 Answers Maersk Line, Wipro,
where is genarak driving aptitude
If the area of a square has increased by 69%,by what % has its side increased?
There are 5 red shoes, 4 green shoes. If one drasw randomly a shoe . what is the probability of getting redshoe
16) There are two water tanks A and B, A is much smaller than B. While water fills at the rate of one litre every hour in A, it gets filled up like 10, 20, 40, 80, 160... in tank B. (At the end of first hour, B has 10 litres , second hour it has 20, and so on). If tank B is 1/32 filled after 21 hours, what is the total duration required to fill it completely? a) 26 hrs b) 25 hrs c) 5 hrs d) 27 hrs
6 Answers CTS, iSoft, TCS, Wipro, Yahoo,
If a salesman's average is a new order every other week, he will break the office record of the year. However, after 28 weeks, he is six orders behind schedule. In what proportion of the remaining weeks does he have to obtain a new order to break the record?