Programming Paradigms
- Procedural
- Functjonal
- Logic
- Object-Oriented
Programming Paradigms Procedural Functjonal Logic Object-Oriented - - PowerPoint PPT Presentation
Programming Paradigms Procedural Functjonal Logic Object-Oriented Specifying the WHAT Describe the Inputs Specifjc values Propertjes Describe the Outputs (as above) Describe the Relatjonships Between I x O As
the underlying machine model.
– Statements that change a program state – Explicit control fmow
– Imperatjve programming – Operatjonal
– Abstractjons of typical machines – Control Flow Encapsulatjon
– No return values
– Return one or more values
– ... – rectangle
– ... – rectangle
– ... – rectangle
Interface Collectjon {int size(); } class myVector extends Vector implements Collectjon { } class myString extends String implements Collectjon { public int size() { return length();} } class myArray implements Collectjon { int[] array; public int size() {return array.length;} } Collectjon c = new myVector(); c.size();