introduction . class notes how to program in c++ by : dettle & dettle reading material

17
Introduction WWW.SHAHIDRASUL.COM

Upload: maryann-wheeler

Post on 16-Dec-2015

213 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Introduction . Class Notes How to Program in C++ By : dettle & dettle READING MATERIAL

Introduction

WWW . S H A H I D R A S U L . C O M

Page 2: Introduction . Class Notes How to Program in C++ By : dettle & dettle READING MATERIAL

Class Notes

How to Program in C++ By : dettle & dettle

READING MATERIAL

WWW . S H A H I D R A S U L . C O M

Page 3: Introduction . Class Notes How to Program in C++ By : dettle & dettle READING MATERIAL

Lecture overheads are designed to convey information, not to be mechanically copied

down. Copies are given to you in the lectures.

LISTEN to what is said.THINK about what is said.ASK questions when you do not

understand.WRITE down what is important.DO NOT TALK amongst yourselves unless you are invited to do so.

LECTURES

WWW . S H A H I D R A S U L . C O M

Page 4: Introduction . Class Notes How to Program in C++ By : dettle & dettle READING MATERIAL

Final Exam (50%)Mid Term ( 30%)Quiz (5%)

Project (10%)

Attendance and Class Participation(5%)

Course Website:http://www.shahidrasul.com

COURSE STRUCTURE …

WWW . S H A H I D R A S U L . C O M

Page 5: Introduction . Class Notes How to Program in C++ By : dettle & dettle READING MATERIAL

Programming?Why C++?

OO Concepts?

YOUR EXPECTATION ?!

WWW . S H A H I D R A S U L . C O M

Page 6: Introduction . Class Notes How to Program in C++ By : dettle & dettle READING MATERIAL

Self WorkReview QuestionsClass Participation

Team Work

MY EXPECTATION ?!

WWW . S H A H I D R A S U L . C O M

Page 7: Introduction . Class Notes How to Program in C++ By : dettle & dettle READING MATERIAL

“Well-designed and constructed software is easy to

maintain”

THOUGHTS TO PONDER …

WWW . S H A H I D R A S U L . C O M

Page 8: Introduction . Class Notes How to Program in C++ By : dettle & dettle READING MATERIAL

Delivered late

Over budget

Requirements not met

Contain defects (bugs)

Less than 5% delivered as required - affects the

quality

SOFTWARE CRISIS

WWW . S H A H I D R A S U L . C O M

Page 9: Introduction . Class Notes How to Program in C++ By : dettle & dettle READING MATERIAL

Poorly defined requirements

changes in requirements

complex requirements

poor development models

SOFTWARE CRISIS REASONS

WWW . S H A H I D R A S U L . C O M

Page 10: Introduction . Class Notes How to Program in C++ By : dettle & dettle READING MATERIAL

CONVENTIONAL PROGRAMMING VS

OBJECT ORIENTED PROGRAMMING

WWW . S H A H I D R A S U L . C O M

Page 11: Introduction . Class Notes How to Program in C++ By : dettle & dettle READING MATERIAL

Developed in late 1960s

more disciplined style

Functional Decomposition Approach

STRUCTURED PROGRAMMING

O p en F ile

read record s

P rocess C lose F ile

M a in

WWW . S H A H I D R A S U L . C O M

Page 12: Introduction . Class Notes How to Program in C++ By : dettle & dettle READING MATERIAL

A single paradigmcode reuse

model reflects the “real world”changes in requirements cause

minimal effect in design

OBJECT - ORIENTED TECHNOLOGY

WWW . S H A H I D R A S U L . C O M

Page 13: Introduction . Class Notes How to Program in C++ By : dettle & dettle READING MATERIAL

client/server computingGUI systems

embedded systemsdatabase applications

OBJECT - ORIENTED - SCOPE

WWW . S H A H I D R A S U L . C O M

Page 14: Introduction . Class Notes How to Program in C++ By : dettle & dettle READING MATERIAL

For Managers: Promises faster, cheaper development and maintenance For Analyst and Designers: Modeling becomes simpler and produces a clear, manageable design For Programmers: Elegance and clarity of the object model and the power of object-oriented tools and libraries makes programming a much more pleasant task, and programmers experiences an increase in productivity.

BENEFITS OF OOP …

WWW . S H A H I D R A S U L . C O M

Page 15: Introduction . Class Notes How to Program in C++ By : dettle & dettle READING MATERIAL

Late 1940s, early 1950s used concepts like

‘objects’ & ‘attribute of objects’

Larry Constantine - first to suggest design before

programming

Dahel & Nygaard introduced ‘class’ in language

Simula in Norway in late 1960s

Alan Kay concepts on ‘messages’ & ‘inheritance’

in 1969

OBJECT ORIENTED - HISTORY

WWW . S H A H I D R A S U L . C O M

Page 16: Introduction . Class Notes How to Program in C++ By : dettle & dettle READING MATERIAL

1970 - term ‘object-oriented’ by Alan Kay in SmallTalk

1980s impact on software life-cycle

1980s Grady Booch introduced concept of O.O Design

(OOD) as a life-cycle process that define the interactions &

interrelationships among software concepts

late 1980s O.O Analysis (OOA)

CON’T - OBJECT ORIENTED - HISTORY

WWW . S H A H I D R A S U L . C O M

Page 17: Introduction . Class Notes How to Program in C++ By : dettle & dettle READING MATERIAL

C++ currently in useSun Microsystems, James Gosling

used as ‘oak’Today known as JAVA which is ‘a

simple, o.o, distributed, interpreted, robust, secure,

portable, high performance and general purpose programming’

announced in May 1995

CON’T - OBJECT ORIENTED - HISTORY

WWW . S H A H I D R A S U L . C O M