Technical Discussion :: C++
Home > Technical Interview Q&A > C++ > Discussion
6 / 187
What are the uses of interface classes?
Answer:
i. A major use of interface function is to adjust the interface to match users exceptions better, thus moving code that would have been scattered throughout a user's code into an interface.
ii. An interface class that controls access to another class or adjusts its interface and is sometimes called as a wrapper.
iii. Interface classes are to provide checked or restricted interfaces.
Asked In ::
Mritunjay
23 Feb, 2019 5:07 AM
i. A major use of interface function is to adjust the interface to match users exceptions better, thus moving code that would have been scattered throughout a user's code into an interface.
ii. An interface class that controls access to another class or adjusts its interface and is sometimes called as a wrapper.
iii. Interface classes are to provide checked or restricted interfaces.
ii. An interface class that controls access to another class or adjusts its interface and is sometimes called as a wrapper.
iii. Interface classes are to provide checked or restricted interfaces.