Technical Discussion :: C++
Home > Technical Interview Q&A > C++ > Discussion
142 / 187
Differentiate between concrete type and abstract type.
Answer:
Concrete type:
1. We require a redesign of the implementation classes to express commonality and issued a template to exploit it.
2. If the implementation changes significantly the interface is usually modified to reflect the change.
Abstract type:
1. Design a common interface but no commonality beyond re-ability to implement the interface.
2. Users need not depend on these declarations and need not be recompiled or in any way changed if set changes.
Asked In ::
Shankri
23 Feb, 2019 5:07 AM
Concrete type:
1. We require a redesign of the implementation classes to express commonality and issued a template to exploit it.
2. If the implementation changes significantly the interface is usually modified to reflect the change.
Abstract type:
1. Design a common interface but no commonality beyond re-ability to implement the interface.
2. Users need not depend on these declarations and need not be recompiled or in any way changed if set changes.
1. We require a redesign of the implementation classes to express commonality and issued a template to exploit it.
2. If the implementation changes significantly the interface is usually modified to reflect the change.
Abstract type:
1. Design a common interface but no commonality beyond re-ability to implement the interface.
2. Users need not depend on these declarations and need not be recompiled or in any way changed if set changes.