1

What is the benefit of creating an instance of an object using the Interface's name?

Let's say I have an Interface called ISampleInterface, and a class called Customer that implements ISampleInterface. What is the difference between creating an object like this:

ISampleInterface customer = new Customer();

and this:

Customer customer = new Customer();
0

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.