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 |
Two trains 200 miles apart are traveling toward each other along the same track. Two trains have the same speed 100MPH. A bee is hovering just above the nose of the first train. It buzzes from the first train to the second train, turns around immediately, flies back to the first train, and turns around again. It goes on flying back and forth between the two trains until they collide. If the bee's speed is twice the speed of two trains, how far will it travel?
What is the difference between a seed cotyledon and a seed endorsperm?
when will entrance exam of axis bank western zone will be held?????can anyone tell me what type of questions were asked in the examination?????how was the level of written????
0 Answers Axis Bank, IBM, State Bank Of India SBI, WIU,
HENN+EGG=46;HEN+EGG=?
consider expresion 'ab' . what happens when 'a' is divided by 'c' & 'b' is multiplied by 'c'.
500 men are arranged in an array of 10 rows and 50 columns . ALL tallest among each row are asked to fall out . And the shortest among THEM is A. Similarly after resuming that to their original positions that the shortest among each column are asked to fall out. And the longest among them is B . Now who is taller among A and B ?
If A driver drives a car four times a lap 10,20 30,60 kmph what is his average speed.
There are two candles of equal lengths and of different thickness. The thicker one lasts of six hours. The thinner 2 hours less than the thicker one. Ramesh lights the two candles at the same time. When he went to bed he saw the thicker one is twice the length of the thinner one. How long ago did Ramesh light the two candles .
25 Answers 3i Infotech, Canara Bank, Geodesic, Interlace, John Deere,
PLEASE SEND ME PREVIOUS QUESTION PAPERS OF SBI AND ANDHRA BANKPO'S AND CLERK AT MY EMAIL ID.
cpahlet : shoulder :: ring : ?
Two trains starting at same time, one from Bangalore to Mysore and other in opposite direction arrive at their destination 1 hr and 4 hours respectively after passing each other.How nuch faster is one train from other?
5 Answers Caritor, Infosys, L&T,
One watch is showing 30 past 3 .What is the angle between minutes & hours hand?