New Batch#100 (10th Nov 2021) - Salesforce Admin + Dev Training (WhatsApp: +91 - 8087988044) :https://t.co/p4F3oeQagK

Sunday, 3 February 2013

Difference between Interface and Abstract Class


Interface
Abstract Class
Declare with keyword Interface
Declare with keyword Abstract
It will not contain constructor
It may or may not contain constructor
By default all methods are public abstract methods.
It contains abstract methods and non abstract methods.
It contains only final variables
It contains final variables and instance variables
We can implement multiple interfaces
We can inherit only one abstract class

No comments:

Post a Comment

Labels