Program Structure and Object-Oriented Programming

[Pages:147]Programming Languages

Sessions 7 & 8 ? Main Theme Program Structure and

Object-Oriented Programming

Dr. Jean-Claude Franchitti

New York University Computer Science Department Courant Institute of Mathematical Sciences

Adapted from course textbook resources Programming Language Pragmatics (3rd Edition)

Michael L. Scott, Copyright ? 2009 Elsevier

1

Agenda

1 Session Overview 2 Program Structure 3 Object-Oriented Programming 4 Conclusion

2

What is the course about?

Course description and syllabus:

? ?

001/index.html

Textbook:

? Programming Language Pragmatics (3rd Edition) Michael L. Scott Morgan Kaufmann ISBN-10: 0-12374-514-4, ISBN-13: 978-0-12374-514-4, (04/06/09)

Additional References:

? Osinski, Lecture notes, Summer 2010 ? Grimm, Lecture notes, Spring 2010 ? Gottlieb, Lecture notes, Fall 2009 ? Barrett, Lecture notes, Fall 2008

3

Session Agenda

Session Overview Program Structure Object-Oriented Programming Conclusion

4

Icons / Metaphors

Information Common Realization Knowledge/Competency Pattern Governance Alignment Solution Approach

5 5

Session 6 Review

Data Types

? Strong vs. Weak Typing ? Static vs. Dynamic Typing

Type Systems

? Type Declarations

Type Checking

? Type Equivalence ? Type Inference ? Subtypes and Derived Types

Scalar and Composite Types

? Records, Variant Records, Arrays, Strings, Sets

Pointers and References

? Pointers and Recursive Types

Function Types Files and Input / Output Conclusions

6

Agenda

1 Session Overview 2 Program Structure 3 Object-Oriented Programming 4 Conclusion

7

Program Structure

Key Concepts

? Modules ? Packages ? Interfaces ? Abstract types and information hiding

Review Session 2

? Textbook Sections 3.3.4, 3.3.5, 3.7

8

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download