|
Notices |
|
Thread Tools | Rate Thread | Display Modes |
![]() |
#1 |
Registered User
Join Date: Mar 2018
Posts: 341
|
What is difference between abstract class and interface?
Abstract class Interface
1)An abstract class can have method body (non-abstract methods). Interface have only abstract methods. 2)An abstract class can have instance variables. An interface cannot have instance variables. 3)An abstract class can have constructor. Interface cannot have constructor. 4)An abstract class can have static methods. Interface cannot have static methods. 5)You can extends one abstract class. You can implement multiple interfaces.
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|