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 string of alphanumeric is there. Find a string that starts with b and ends with 3 characters.
How many tangents can be drawn with in three circles if they do not lie with in each other
Hi friends i am new to this site. Pls provide me the KVB clerical exam model question papers. pls send to mail id mailstoaaa@gmail.com. Hope u guys will help me.
a radioactive material of mass 16 grms in 10 years due to radiation. how many years will it take for the material to attain a mass f 1 gm
How will u divide two numbers in a MACRO?
I was born on October 17, 1927. How old I was on Jan. 26, 1978?
14 Answers Rourkela Steel Plant, Vizag Steel,
4,44,444,4444. Something like this.
PLz let me kno d syllabus 4 Karnataka bank exam.......
0 Answers State Bank Of India SBI,
A new apartment complex purchased 60 toilets and 20 shower heads. If the price of a toilet is three times the price of a shower head, what percent of the total cost was the cost of all the shower heads?
Hi frds, can any one send me previous soved question papers of SBI clerical post....my mail id is venky.lotus@gmail.com...Thanks in Advance
ninety customers of a discount store were asked about their purchases during the past month.20 said they had purchased books,45 had purchased film,38 had purchased jewellery,15 had purchased books and films,8 had purchased books and jewellery,6 had purchased film and jewellery,3 had purchased all the 3 articles.draw a venn diagram and answer the questions how many of these ppl had purchased a)books or films but not jewellery? b)books and film but not jewellery? c)jewellery but not books or films? d)at least one of the three articles? e)exactly one of the three articles?
A batsman scored 120 runs including 16 fours and 2 sixes. What percentage of his total score did he make by running between the wickets?