Skip to Main Content
Beginning Oracle PL/SQL, Second Edition
book

Beginning Oracle PL/SQL, Second Edition

by Donald J. Bales
May 2015
Beginner content levelBeginner
492 pages
11h 48m
English
Apress
Content preview from Beginning Oracle PL/SQL, Second Edition

CHAPTER 10

image

Examples

One could argue that polymorphism is the subject of this chapter. Polymorphism is about using the same message (or command) in order to get the same result, but for different kinds of objects. Let’s look at a simple example. Figure 10-1 shows the use of the command draw() for three different geometric shapes: a square, a triangle, and a circle.

9781484207383_Fig10-01.jpg

Figure 10-1. An example of polymorphic command use with different objects

Although the three geometric shapes in Figure 10-1 are different objects, using the same command, you can communicate ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Oracle PL/SQL Language Pocket Reference, 5th Edition

Oracle PL/SQL Language Pocket Reference, 5th Edition

Steven Feuerstein, Bill Pribyl, Chip Dawes
Oracle PL/SQL Programming: A Developer's Workbook

Oracle PL/SQL Programming: A Developer's Workbook

Steven Feuerstein, Andrew Odewahn

Publisher Resources

ISBN: 9781484207376Purchase book