Question
Can we instantiate an interface?
Answer
You can’t instantiate an interface directly, but you can instantiate a class that implements an interface.
📲 Practice Offline on Mobile: Download the free QA Automation & SDET Prep app on Google Play & App Store.