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 four digit number is to be formed using the digits 1 to 7 All digits of the number are different and repetition is not allowed. 1. How many such numbers can be formed ? 2. How many such numbers are divisible by 4 ?
11 Answers Infosys, MMI, Naval Academy, SMN, TCS,
pls send me model question question and answer paper of 5 years. my email add:goutamda126@rediff.com pls send me as early as poissible ..........
6 Answers Bank of Baroda, Tata Steel Limited,
what do you know about banking industry?
A worker pay Rs20 a day ,he works 1,1/3,2/3,1/8,3/4 in a week.What is the total amount paid to the worker.
what can you contribute to the fiscal commission?
A student is ranked 13th from right and 8th from left. How many students are there in totality ?
what sort of questions may be asked
What are software testing metrics
Find the next letter in the series A,C,F,J,0--
Number Series 3,18,4,24,5,30,?
The diameter of a wheel is 1.26m. If this wheel rotates 500 rotations, how long it can travel?
The First Prime Minister of Sri lanka___________