Technical Discussion :: C++
Home > Freshers > Technical Interview Questions > C++
86. 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 :: Virtusa
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.