Abstract class is a class that can not be instantiated. The derived classes must provide implementation for all abstract methods defined in Abstract class.
|
|
NO
|
|
No, we can have Abstract class without abstract method.
|
|
Yes
|
|
No, Virtual or Abstract members can not be declared as private.
|
|
Yes, You can define data and member fields.
|
|
Interface is a contract it defines the signature of the functionality. If any class is implementing an interface that should provide implementation for all the methods defined in Interface.
|
|
Yes, Class can implement multiple interfaces.
|
|
Please answer the following questions.
|
|
Interview questions on Abstract Class and Interface
Interview questions on Abstract Class and Interface