12-Object%20Oriented%20Programming - 12 Object-Oriented...

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

View Full Document Right Arrow Icon
ICS 313 - Fundamentals of Programming Languages 1 12. Object-Oriented Programming 12.1 Introduction ± Categories of languages that support OOP: ± 1. OOP support is added to an existing language ` C++ (also supports procedural and data-oriented programming) ` Ada 95 (also supports procedural and data-oriented programming) ` CLOS (also supports functional programming) ` Scheme (also supports functional programming) ± 2. Support OOP, but have the same appearance and use the basic structure of earlier imperative languages ` Eiffel (not based directly on any previous language) ` Java (based on C++) ± 3. Pure OOP languages ` Smalltalk
Background image of page 1

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

View Full Document Right Arrow Icon
ICS 313 - Fundamentals of Programming Languages 2 12.2 Object-Oriented Programming ± Paradigm Evolution ` 1. Procedural - 1950s-1970s (procedural abstraction) ` 2. Data-Oriented - early 1980s (data abstraction) ` 3. OOP - late 1980s (Inheritance and dynamic binding) ± Origins of Inheritance ` Observations of the mid-late 1980s : ¾ Productivity increases can come from reuse ¾ Unfortunately, ADTs are difficult to reuse - never quite right ¾ All ADTs are independent and at the same level ` Inheritance solves both - reuse ADTs after minor changes and define classes in a hierarchy 12.2 Object-Oriented Programming (continued) ± OOP Definitions: ` ADTs are called classes ` Class instances are called objects ` A class that inherits is a derived class or a subclass ` The class from which another class inherits is a parent class or
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 5

12-Object%20Oriented%20Programming - 12 Object-Oriented...

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

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