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 |
Can anyone send me SBI clerical staff exam model question paper to my mail id. Sandhya.b12@gmail.com
please send me model questions for clerk exam of bank
There are 4 boys and 3 girls. What is the probability the boys and girls sit alternately?
How many mashes are there in a sq. m of wire gauge. Each mesh being 8mm long X 5mm width
In a class of 60 students, a student of weight 45 Kg leaves the class. The average weight of the class is then increased by 200 gms. What is the average weight of the remaining 59 students in the class?
What is the constitutional name of India?
If A=Z, B=Y, C=X, .......... Z=A, Then GROUP = ?
On a given day, a bank had 16000 cheques returned by customers. Inspection of the first 800 cheques indicated that 100 of those 800 had errors and were therefore the available immediately for data processing. On this basis, hwo many cheques would be available immediately for data processing on that day?
6 Answers Cap Gemini, IBM, MAHINDRA, RMP Infotec, TCS,
2x-y=4 then 6x-3y=?
26 Answers ABC, Cap Gemini, Ebix, Infosys, Polaris, ProKarma, TVS,
what is the same as or oppisite of refuse matter from a floor
if out of x bulbs y bulbs are broken;the % of non broken bulbs
A soldier looses his way in a thick jungle at random walks from his camp but mathematically in an interesting fashion. First he walks one mile east then half mile to north. Then 1/4 mile to west, then 1/8 mile to south and so on making a loop. Finally hoe far he is from his camp and in which direction.