Lecture Notes on Polymorphism

نویسنده

  • Frank Pfenning
چکیده

In this lecture we will start the transition from C0 to C. In some ways, the lecture is therefore about knowledge rather than principles. The underlying issue that we are trying to solve in this lecture is nevertheless a deep one: how can a language support generic implementations of data structures that accomodate data elements of different types. The name polymorphism derives from the fact that data take on different forms for different uses of the same data structure. A simple example is the data structure of stacks. In our C0 implementation, the definition of the stack interface used an unspecified type elem of elements.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Factors affecting students tendency of Univercity students to Lecture Notes

Introduction: Many studies detected factors contributing to the students’ tendency to lecture notes. This study aimed at evaluating the factors affecting students tendency to lecture notes in Hormozgan University of Medical Sciences. Methods: In this descriptive study, 179 students from medicine, nursing & midwifery, health, and Paramedicine schools were selected through stratified random...

متن کامل

Smartphones and Our Students:A Case of Undergraduate Students in an EFL Context

Immoderate smart phone usage usually makes the students addicted to it and spends less time reading lecture notes and textbooks. This study aims to determine university students' usage of smart phones and perceived rejection of paper books in an EFL context. The study collected data through a 20-item structured questionnaire consisting of the general characteristics, the number and hours of gen...

متن کامل

Algorithms for Selfish Agents Lecture Notes

This document contains lecture notes for a class on algorithms for selfish agents held by the authors at Università di Salerno in Spring 2003. Some lecture have been subsequently added.

متن کامل

Lecture Notes on Linear Codes Defined over Finite Modules: the Extension Theorem and the Macwilliams Identities — for Use of Cimpa-unesco-tübitak Summer

These lecture notes discuss the extension problem and the MacWilliams identities for linear codes defined over finite modules.

متن کامل

Advanced Graphics Lecture Notes

Lecture handouts and supervision material Some of the lecture course material is available on the web. This material is also printed out to provide these lecture notes. Other material is bound in with these notes but cannot be put on the web for copyright reasons. There are exercises at the end of each section (subsections 1.6, 2.3, 4.4, 5.4, 6.2, 7.3). My thanks to Dr Jonathan Pfautz and Dr An...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2010