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 |
what will be at ?(question mark) place? 1, 7, 9 2, 14, ? 3,105,117 options are : 20,12,14,16
Find the next series: ACD EGL IKT MOB?
6 Face of a cube are painted in a manner ,no 2 adjacent face have same colour three colurs used are red blue green. Cube is cut in to 36 smaller cube in such a manner that 32 cubes are of one size and rest of them bigger size and each bigger side have no red side.
In a certain code language TRANSPORT is written as RTASNPORT. How will the word GATEHOUSE be written in that code language ? (a) ETGAHOESU (b) ETAGHESUO (c) AGTHEOUSE (d) AGETHUOES (e) None of these
A triangle has sides of lengths 10, 24 and k. k is a positive integer. The number of values of k for which this triangle has three acute angles is
Please Send me a SBI Clark ship Question Paper ?
0 Answers State Bank Of India SBI,
A number is such that when it is multiplied by 8 , it gives another which is as much above from 270as the original (itself) is below 270. The average of the original number and the resultant number is
With a 4/5 full tank a vehicle can travel 12 miles, how far can it travel with a 1/3 full tank
first day of 1999 is sunday.what day is the last day?
12 Blacksox and 12 Whitesox mixed in a box,a pair of sox is picked at a time,in which pick how many pick ,to get the right pair(black&black or white&white)?
I need Matrix and Series questions with solutions.
There r 1200 elephant .some have blue and pink strips.some have pink & green strip. 400 ele. have only pink strip. how many have only blue strip