What is the difference between Abstract and Interface?
Answer Posted / muhammad hussain wazir pakista
1: Abstract class contains abstract and non abstract methods
while interface contains all abstract methods.
2: Interface only contain definition of method no
implementation but Abstract class can have this quality.
3: We can not create object of abstract class.
4: We can create constructor and Destructure Abstract class
can while this can be do in Interface.
5: In interface all methods are abstract and have no keyword
of Abstract with method.
Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
write code for inserting and updating recoards in sql server database using connected architecture & records shoulds displayed in grid view ( use c# )
What is the wildcard character in sql?
What is a namespace server?
What does return do in for loop?
What is default value of bool in c#?
What is multithreading? What are the problems that comes with multithreading and how to manage them?
What type is string in c#?
how to Create a datagridview control with check box column with 8rows in it, the maximum number of check boxes checked should be 3, when user checks the 4th corresponding message should be displayed and check box should be checked. User can uncheck the checked boxes Note: read-only property should not be used
Is c# static or dynamic?
How can you reference current thread of the method ?
What are logical operators in c#?
What is lock in c#?
Is string passed by reference in c#?
What is the boxing and unboxing in c#?
When was .net linq added?