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)
-
Salesforce Certified Administrator Salesforce Certified Advanced Administrator Salesfo...
-
As a Salesforce Admin, Salesforce flows are one of the most effective ...
-
1. What is the purpose of writing the test class? After developing an apex class or apex trigger we should write the unit tests a...