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 |
If P=Total number of components, Q = number of defective components .What is the % of non defective components?
i am preparing for SBI clerical exam and also for oriental bank of commerce .. i need previous exam question paper for last 10 years .. pls can you send it to me by email id .. pls help me
0 Answers State Bank Of India SBI,
slur : speech : : smudge :?
X's father's wife's father's granddaughter uncle will be related to X as?
Find the value of @@+25-++@16, where @ denotes "square" and + denotes "square root".
There are 150 weights .Some are 1 kg weights and some are 2 kg weights. The sum of the weights is 260.What is the number of 1kg weights?
A 4 digit no may consist of the digits 6,2,7,5 where none of the nos are repeated.Find the possible no of combinations divisible by 36?
1)The Muslim adventurer who destroyed the Nalanda University? 2)Hiuen Tsang visited India which king reign? 3)what percentage of world's fresh water is stored as glacial ice?
1.find the number of divisors of 248 other than unity and itself ? 2.find the sum of all natural numbers from 120 to 180 3. how many numbers upto 300 which are exactly divisible by both 2 and 3 together ?
Three men goes to a hotel to stay ,the clerk says $30 per room/day so all the three plans to stay in one room so each pays $10.After some time the clerk realises that he made a mistake of collecting $30 but the room cost only $25,there fore he decides to return $5 to them so he calls the room boy and gives him $5 asking him to return. The room boy keeps $2 with him and he returns only $3($1 for each). Now Totally all have paid $9 each($27)+room boy $2 which is equal to $27.where did $1 go,who has made the mistake?
A car averages 55 mph for the first 4 hours of a trip and averages 70 mph for each additional hour. The average speed for the entire trip was 60 mph. How many hours long is the trip?
I and two of my friends were playing a game. For each win I get Rs 3. Totally I had three wins. Player 2 got Rs.9 and player 3 got Rs 12. How many games had been played?