What is the difference between Abstract and Interface?
Answer Posted / ntmohare
Abstract Class:
(1)it contains both abstract methods and non abstract methods
(2) object can't be created just through reference we are calling all the methods
(3) it is implemented by subclass i.e which class is extended from this
abstract class contains only nonabstract this situation also code will compile fine but problem at runtime
abstract can't be declared with Final Synchronized Native just your requirements you implement some methods in the abstract class
this class also contain Constructor
========
Interface contains all abstract methods
all methods compulsory implemented by particular class
interface does not contain Constructor
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is c# used for in the industry?
What are c# i/o classes?
Is there regular expression (regex) support available to c# developers?
What is the difference between int and int in c#?
How many types of interface are there in c#?
Is c# front end or back end?
What is lambda expression in c#?
Tell me the difference between value passing and address passing?
How many types of constructors are available in c#?
What is Satellite Assemblies ?
explain Garbage collector’s functionality on unmanaged code
What are extender provider components?
When Should You Call The Garbage Collector In .net?
What is a decimal in c#?
Is it possible to nest cfml conditional tags?