L17adts - permissible on the objects of this type ● type...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
What is an aggregate construct? Encapsulation? What is class? What is object? What is the difference between object and class? What do we mean when we say object belongs to a class? What’s member variable? Member function? Method? Attribute? What’s an in-line function definition? What are these operators used for? “.” “::” What is the difference between public and private members of class? What is mutator? Accessor? How’s accessor function distinguished? What is constructor? Is constructor mutator or accessor? What is the name of constructor? How many parameters can constructor take? Can there be more than one constructor? What is void constructor? What is the return value of constructor? Questions on Classes
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Abstract Data Types
Background image of page 2
Data type - collection of values and set of basic operations defined on these values predefined data type int values: … -1, 0, 1, 2 … operations: +, -, *, / % type specification - description (definition) of values and operations
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: permissible on the objects of this type ● type implementation -realization (coding) of the values and operations ■ integers are implemented in computer as strings of bits: 2 == 0000010 1 == 0000001 ■ addition operation should be implemented so that it accepts the bits of operands and produces the bits of the result: binadd(0000010, 0000001) = 0000011 Data Types ● abstract data type- users (programmers) are familiar only with type’s specification but not implementation ● implementation meets (or conforms to ) specification if the implemented operations and values behave according to specification ● treating data types as abstract data types separates the task of implementing the type from using it. ● note that implementation can be changed as long as the it conforms to specification ● class can be designed as ADT: ■ private variables - type value ■ public functions - type operations ● well designed class is an ADT Abstract Data Types...
View Full Document

This note was uploaded on 04/22/2010 for the course CS 23021 taught by Professor Staff during the Spring '08 term at Kent State.

Page1 / 4

L17adts - permissible on the objects of this type ● type...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online