{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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

Info icon This 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
Image of page 1

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

View Full Document Right Arrow Icon
Abstract Data Types
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
Image of page 3

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

View Full Document Right Arrow Icon
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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern