Object Orientated programming is a method of working with data. It incorporatedĀ these concepts:
- Abstraction
- Encapsulation
- Inheritance
- Polymorphism
For example, programming chess pieces
Practical example of programming in Python
Try someĀ examples for yourself (W3Schools)
Python
- Classes
Note: Python uses tabs/indents to bracket - Python Objects TEST*
Javascript
In the first video we looked at objects, properties and functions
Think of some other examples where this concept might be useful
eg people, shopping, game sprite
- what would the properties be?
- what would the methods be?