














Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!















Course Instructor: Mr. Shahzad Rafiq Office: Room 113, 1 st Floor, Block A, Email: [email protected] Teacher Assistant: Ms. Tehreem Zainab
http://en.wikipedia.org/wiki/
http://en.wikipedia.org/wiki/
A simplified description of a system that emphasizes some of the systems details while suppressing others - Good abstraction will emphasize details that are significant to the user
A concept qualifies as abstract only if it can be described, understood, and analyzed independently of the mechanism that will eventually be used to realize it
An abstraction denotes the essential characteristics of an object that distinguishes it from all other kinds of objects and thus provide crisply defined conceptual boundaries, relative to the perspective of the viewer
Entity
Represents a useful model of a problem ‐ domain entity - Action - Provides a generalized set of operations all of which perform the same kind of function
Virtual ‐ machine
Groups together operations that are all used by some superior level of control or operations that all use the same junior level set of operations
Packages a set of unrelated operations
Controlling the cabin of a plane
Key abstraction is a sensor - Anything we will measure must be associated with - a sensor (pressure, temp, moisture, smoke) - Actions the sensor would need to perform: - Calibrate - Test - Report - Set
Also known as information hiding
For abstraction to work, encapsulation must be present
distinct parts defined now:
Interface
The act of partitioning a program into individual components can reduce the complexity to some degree
Even more powerful is the modular partitioning of a system creating well
defined and documented boundaries.
Each boundary has an interface - This leads to greatly increased comprehension of a program
Modularity, Encapsulation, and Abstraction
Single inheritance
Multiple inheritance Employee Salary Hourly Executive Flowering plant Fruit Vegetable
Deriver from theories of abstract data types - The enforcement of the class of an object, such that objects of different types may not be interchanged, or at the most, they may be interchanged only in very restricted ways
Typing allows us to express abstractions so that the programming language on which we implement them can be made to enforce design decisions