adspace
What things would you remember while making an interface?
Answer Posted / Manjula
When creating an interface in C++, remember to:
1. Define pure virtual functions (functions without implementation).
2. Use abstract classes (classes with at least one pure virtual function).
3. Make sure the derived classes implement all the pure virtual functions.
4. Keep interfaces independent of implementations.
5. Make interfaces easy to extend and difficult to modify.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers