Topic#2 - CS162 Topic#2 New Topic Programming paradigms in...

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

View Full Document Right Arrow Icon
CS162 - Topic #2 New Topic: Programming paradigms in C++ Data Abstraction and Abstract Data Types Programming Assignment Questions Begin on Stage #1
Background image of page 1

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

View Full DocumentRight Arrow Icon
CS162 - Programming Paradigms The most important aspect of C++ is its ability to support many different programming paradigms We will cover this term procedural abstraction modular abstraction data abstraction as ways or techniques used to solve problems
Background image of page 2
CS162 - Procedural Abstraction This is where you build a “fence” around program segments, preventing some parts of the program from “seeing” how tasks are being accomplished. Any use of globals causes side effects that may not be predictable, reducing the viability of procedural abstraction
Background image of page 3

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

View Full DocumentRight Arrow Icon
CS162 - Procedural Abstraction This may be the approach taken with stage #1. ..where the major tasks are broken into functions. You can test your functions separately before the entire program is written and debugged.
Background image of page 4
CS162 - Modular Abstraction With modular abstraction, we build a “screen” surrounding the internal structure of our program prohibiting programmers from accessing the data except through specified functions. Many times data structures (e.g., structures) common to a module are placed in a header files along with prototypes (allows external references)
Background image of page 5

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

View Full DocumentRight Arrow Icon
CS162 - Modular Abstraction The corresponding functions that manipulate the
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 20

Topic#2 - CS162 Topic#2 New Topic Programming paradigms in...

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

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