Understand Object Oriented in Python (Pythonic way)

example of interaction between object
Public attribute
Protected attribute _ before his name
private attribute __before his name
public method
Method with parameters
instantiation of an object
Initialisation of an object
instance attribute
Create one class attribute and instance attribute
Instance of two dog without changing any attribute
Change value of class attribute
Change instance attribute
Initialize value to object labrador
added method yelling
Call method yelling
This will call the getter of the attribute age
Modify attribute with the setter




Software engineer student at HolbertonSchool 👉https://github.com/ThibautBernard 👉https://twitter.com/__ThibautDev

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Mr. Robot (MEDIUM)— THM

CS373 Fall 2020: Mitchell Watkins

Visual Backend With AWS Amplify’s Admin UI — For Beginners

Week #4 summary

PHP PDO Connection and Authentication(Registration, Login and Logout)

How To Migrate From Webex To Zoom Chat

Migrate From Webex To Zoom Chat

Celebrate Spring and Join NFT Giveaway

Think Big, Learn Fast, and Listen: My Lessons from Building a WordPress SaaS Product

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Thibaut Bernard

Thibaut Bernard

Software engineer student at HolbertonSchool 👉https://github.com/ThibautBernard 👉https://twitter.com/__ThibautDev

More from Medium

Exception Handling

Python Basics, Variable & Data-Types

Some tips for using fixtures in pytest

Recursive Text Replacement Python Script for MacOS and Windows.

Leaf node on a tree