What is the difference between Abstract and Interface?
Answer Posted / nikhila
Abstract class contain both complete and incomplete methods
The implementation for abstract methods will be in derived class. Access specifier will allow
Interface contains only incomplete methods.The implementation will be in other class.Access specifier will not allow.by default public can use
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why do we use hashtable in c#?
What do you understand by the terms datareader object and dataset object?
What are the types in c#?
What to implement on my class Finalize or IDisposable
Write one code example for compile time binding and one for run time binding? What is early/late binding?
How can we sort an array in c#?
Write a sample code to write the contents to text file in c#?
Why data types are important in c#?
Can we override main method in c#?
What are delegates and why are they required?
What is expression c#?
What is file extension of webservices?
How to assign Null value to Var?
How many bytes is an int in c#?
what will be the output of the given below coding. using System; public class Exercise { static void OddNumbers(int a) { if (a >= 1) { Console.Write("{0}, ", a); a -= 2; OddNumbers(a); } } public static int Main() { const int Number = 9; Console.WriteLine("Odd Numbers"); OddNumbers(Number); Console.WriteLine(); return 0; } }