Skip to content

Latest commit

 

History

History

0x06-python-classes

0x06. Python - Classes and Objects

At the end of this project, I should be able to explain to anyone, without the use of Google:

  • Why Python programming is awesome
  • What is OOP
  • “first-class everything”
  • What is a class
  • What is an object and an instance
  • What is the difference between a class and an object or instance
  • What is an attribute
  • What are and how to use public, protected and private attributes
  • What is self
  • What is a method
  • What is the special init method and how to use it
  • What is Data Abstraction, Data Encapsulation, and Information Hiding
  • What is a property
  • What is the difference between an attribute and a property in Python
  • What is the Pythonic way to write getters and setters in Python
  • How to dynamically create arbitrary new attributes for existing instances of a class
  • How to bind attributes to object and classes
  • What is the dict of a class and/or instance of a class and what does it contain
  • How does Python find the attributes of an object or class
  • How to use the getattr function