what is the difference b/w abstract and interface?
Answers were Sorted based on User's Feedback
Answer / n.suresh
Abstract can,t support multiple inheritence.
Interface can suppport the multiple inheritence.
Abstract have accesbulity modifiers.
Interface have no accesbulity modifiers.
| Is This Answer Correct ? | 11 Yes | 0 No |
Answer / bhaskar.mantrala
Interfaces are same as classes but their methods are
declared with out any body..... and definition
corresponding to that allmethods will write on
implementation class(i.e)single class.BUT
Eg:
interface interfacename
{
//Declarations only
//first method
//second method
..
..
//n-th method
//final variables
}
class classname implements interfacename
{
//Definitions of ALL methods present in interfacename
}
Abstract class also has same as interface and definitions of
all those methods may not be present in single extended class.
And we doesn't create an object to class that is abstract.
| Is This Answer Correct ? | 3 Yes | 1 No |
What does it mean when someone says I oop?
Explain the advantages of inheritance.
why the argument is passed by reference to a copy constructor?example?
why the memory allocated with new cant be freed using free()
hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.
What is the difference between procedural programming and oops?
in the following, A D B G E C F Each of the seven digits from 0,1,2,3,4,5,6,7,8,9 is: a)Represented by a different letter in abov fig: b)Positioned in the fig abov so tht A*B*C,B*G*E,D*E*F are equal. wch does g represents? C
Can static class have constructor?
WAP to generate 2n+1 lines of the following pattern on the computer screen:
C#.net Interview Question A=10 B=5 C=A+B Print C The above will be given in a multiline textbox. You need to parse the above input, store values for A,B&c. And you have to display the value of C.
Does c++ support multilevel and multiple inheritance?
What is the difference between pass by reference and pass by value?