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 |
?School? is related to ?Education? in the same way as ?Hospital? is related to (a) Treatment (b) Patient (c) Doctor (d) Nurse (e) None of these
How will you manage the job after marriage? Its a transferable job.
A clock gives 4 ticks consequetively. After days it has become defective & gives only 2 ticks. What is the probability that clock produces 3 ticks consequetively?
3 Answers SK Industries, TATA, TCS,
A batsman average was 15.at last innings he took 23 runs then his average became 16.how much run he should take to make his average 18?
In a certain department store, which has four sizes of a specific shirt, there are 1/3 as many small shirts as medium shirts, and 1/2 as many large shirts as small shirts. If there are as many x-large shirts as large shirts, what percent of the shirts in the store are medium?
A company contracts to paint 3 houses. Mr.Brown can paint a house in 6 days while Mr.Black would take 8 days and Mr.Blue 12 days. After 8 days Mr.Brown goes on vacation and Mr. Black begins to work for a period of 6 days. How many days will it take Mr.Blue to complete the contract?
how to retrieve the recent record from the database using sql query. suppose the table has the columns only ename,job,salary columns
Indira is three times older than yogesh while zaheer is half the age of wahida.if yogesh is older than zaheer then which of following statements can be inferred. 1.yogesh is older than wahida 2.indira is older than wahida 3.indira may be younger than wahida 4.none of above
we can use dm watter in sted of distulated watter
The average between a two digit number and the number obtained by interchanging the digits is 9. What is the difference between the two digits of the number? (a) 8 (b) 2 (c) 5 (d) Cannot be determined (e) None of these
out of 55 eggs 5 are defective. what is % of defective eggs
what is the probability that 4 numbers selected from 1 to 40 are not consecutive.