20-01-2012, 02:24 PM
Modern Compiler Design Java Tutorial
[attachment=16340]
Different Programming Paradigms
Functional/procedural programming:
program is a list of instructions to the computer
Object-oriented programming
program is composed of a collection objects that communicate with each other
Inheritance
Class hierarchy
Generalization and Specialization
-subclass inherits attributes and services from its superclass
-subclass may add new attributes and services
-subclass may reuse the code in the superclass
-subclasses provide specialized behaviors (overriding and dynamic binding)
-partially define and implement common behaviors (abstract)