Object Orientation
Keywords on this page:
- Object Orientation
- Procedural Programming
- Class
- Object
- Inheritance
- Arrays
- ArrayLists
What's the benefit?
Programmers used to type all of their code into files without any organisation. This is called Procedural programming. But what if something goes wrong? As a programmer you were left searching through hundreds or even thousands of lines of code to find a mistake!
In the 1980's a new approach to program design was then created called Object Orientation. Code was seperated by it's function into classes. Classes model the real world (e.g. the student class will contain code related to a student). This makes it far easier to fix code because you know which class to look in. It also made it easier to re-use code as classes can inherit from each other. More on that later.
Programming Paradigms: Procedural vs Object Oriented Programming
Procedural Programming:
- uses sub routines (e.g. functions, procedures)
Object Orientation:
- Uses classes and objects.