<jupyter_start><jupyter_text>[![Webinar](../../media/OO.png)](https://youtu.be/dLrahDArm4w)  What is Object Oriented programming- OOP is a way of modeling a programming problem- Concepts: class, object- Terms: attribute (data), methods (behavior)"A bike" (class) Bikes have attributes: (brakes, handle bars, wheelsBikes have behaviors : move, steer, brake Objects or instances of the bike class: -"Mark's 1996 Specialized Stumpjumper FS" (object)-"My Bianchi Sprint bikes" OOP requires some time to write and develop good classes.The following notebook is based on a recent [webinar](https://youtu.be/dLrahDArm4w) we recorded at CSDMS. You can find the [Slideshow](https://github.com/csdms/level-up/blob/master/info/Level-3-Object-oriented-Programming.pdf) and a more elaborate example here [python_corona_simulation](https://github.com/BCampforts/python_corona_simulation),which is forked from [paulvangentcom](https://github.com/paulvangentcom/python_corona_simulation).  How to code a class Define a Virus class1. Properties    - name     - infection_range    - infection_chance    - recovery_duration2. Methods    - documentSelf()  Create two virus objects (instances of the class Virus)  - ebola - sars<jupyter_code>class Virus: 
    pass
# Instances v1 and v2

# Document self
# Make subclass lethal virus<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.09992542878448919, 'fraction_numerical': 0.00820283370618941, 'mean_word_length': 4.964444444444444, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 5, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '568373', 'license': 'MIT', 'n_tokens_mistral': 424, 'n_tokens_neox': 401, 'n_words': 130, 'path': 'lessons/python/ESPIN-08-OO.ipynb', 'repo_name': 'huxiaoni/espin', 'size': '1341'}