1 C does not support data abstraction or generic abstraction. Nevertheless, it is possible to build a library of C program units that achieves some of the benefits of data abstraction and generic...


1 C does not support data abstraction or generic abstraction. Nevertheless, it is possible to build a library of C program units that achieves some of the benefits of data abstraction and generic abstraction.


(a) Show how you would write a C program unit that achieves the effect of an abstract type. The program unit should provide a named type (such as Date), together with some operations on that type, without revealing how that type is defined.


(b) Now suggest how you might achieve the effect of a
generic
abstract type. You must enable a program unit that implements a generic abstract type (such as List) to be instantiated as required. Application programmers should be able to link these program units to their programs. What software management tools would be needed, in addition to the C compiler?



Nov 20, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here