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 |
5) Failure to use null indicator variable when referencing a nullable column will give the following SQLCODE a) +150 b) –001 c) +276 d) +305
7/8 of 3/7 of a number is equal to 25% of 45% of another number. What is the ratio of the first and the second numbers respectively? (a) 3 : 7 (b) 9: 10 (c) 3 : 10 (d) 3 : 2 (e) None of these
pls send me current topics for GD for competitve exams my email id is tejalpg@yahoo.com
pls send me ford's aptitude,technical and HR questions to my id pavim88@gmail.com,its very urgent
In a class of 60 students, a student of weight 45 Kg leaves the class. The average weight of the class is then increased by 200 gms. What is the average weight of the remaining 59 students in the class?
A man drives at a speed of 40 miles/hr while his friend drives at a speed of 50 miles/hr. If the friend leaves 30 minutes after the man, when are they going to meet?
Three men A, B, C plays Cards. If one loses the game he have to give Rs.3. If he wins the game he will gain Rs.6. If A has won 3 Games, B loses Rs.3, C wins Rs.12.What is the total no. of games played?
10 Answers Accenture, College School Exams Tests, CTS,
can anyone plz send me bank clerical posts model papers pushyamis@yahoo.com
A two digit even number has both the digit same and the number is divisible by 4.when divided by 4 the number obtained is an even number.what is the original number?
A telephone cable is to be run from a junction point on the bank of a river 900 meters wide to an office that is located 3000 meters downstream on the opposite bank. If the cost of laying cable under water is Rs. 5 per meter and that of laying overhead on land is Rs. 4 per meter, find the point downstream where the cable is to cut across the river. (a) 450 (b) 1800 (c) 2800 (d) 2100 (e) 2700
a bus started from bus stand at 8.00am and after 30min staying at destination it returned back to the buss tand.the destination is 27 miles from the bustand the speed of the bus 50percent fast speed at what time it returns to the bustand.
If A:B =5:9, B:C=3:8 then A:B:C=?
22 Answers College School Exams Tests, HCL, Zoho,