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
State the top.NET class that everything is derived from?
How to override a function in c#?
Define an escape sequence, name few strings in escape sequence?
What is action in c# 3.5?
Helo , Help Me , Help Me About : C# Windows Application - Network How To Manage IP Client's Accessiblity To The Internet Share concise Substitute , Minor ISA Server
What is activator c#?
What is typeof c#?
Is c++ or c# better?
What is a linq in c#?
What does using system mean in c#?
What is reference types in c#?
What are get and set in c#?
What is token in c#?
What is addressof operator?
What is cshtml?