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
|
Sunday, December 18, 2022
Difference between Interface and Abstract Class
Subscribe to:
Post Comments (Atom)
-
For years, Business Intelligence (BI) and Enterprise Analytics solutions have been providing business users with ac...
-
1. Batch Apex Batch Apex is used to process large volumes of records asynchronously in Salesforce. It divides the records into batches, p...