How you might achieve the effect of a generic abstract type

Assignment Help C/C++ Programming
Reference no: EM131864432

Problem

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?

Reference no: EM131864432

Questions Cloud

Aggregate level of research in deterrence studies : Considering the aggregate level of research in deterrence studies, do you find these studies valid? Explain why or why not.
Explain why hyperthermophile is unlikely to human pathogen : Explain why hyperthermophile is unlikely to be human pathogen and explain why and how refrigerator, freezing, and curing a meat in salt
Discuss similarities in models of clinical supervision : Describe the differences and similarities among the 3 models of clinical supervision, the Developmental model,Integrated model, and Orientation specific model.
Most important methods that police managers : What do you believe are the most important methods that police managers should use to influence officer attitudes, overcome resistance, and implement change?
How you might achieve the effect of a generic abstract type : Show how you would write a C program unit that achieves the effect of an abstract type. Now suggest how you might achieve the effect of a generic abstract type.
Fully discuss the classical school of criminology : Fully discuss the classical school of criminology. Include the following points: the major contributors, the assumptions about society, crime, and punishment
Write a case scenario in which a business inspection : Write a case scenario in which a business inspection would be legal and describe circumstances in which that inspection would become illegal.
Define competitive advantage in terms of quality and price : Describe the Nike company's competitive advantage in terms of quality, price, selection, location, and service. Include here a set of POPs.
Could discipline enforced by suitable software management : how disciplined use of #include directives can mitigate worst danger of independent compilation. Could discipline enforced by suitable software management tool.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd