<jupyter_start><jupyter_text>Classes with Multiple Objects<jupyter_code>class Birds:
  def __init__(self,birds_name):
    self.birds_name = birds_name
  def flying_birds(self):
    print(f"{self.birds_name}flies above the sky")
  def non_flying_birds(self):
    print(f"{self.birds_name} is the national bird of Australia")

vulture = Birds("Griffor Vulture")
crane = Birds("Commong Crane")
emu = Birds("Emu")

vulture.flying_birds()
crane.flying_birds()
emu.non_flying_birds()
class foo:
  def __init__(self, a, b):
    self.a = a
    self.b = b
  def add(self):
    return self.a+self.b
object_foo =foo(3,49)
object_foo.add()
object_foo.__a = 6
object_foo.__b = 9
object_foo.add()
class Counter:
  def __init__(self):
    self.__current = 0
  def increment(self):
    self.__current += 1
  def value(self):
    return self.__current
  def reset(self):
    self.__current = 0

number = Counter()
number.__current = 3

number.increment()
number.increment()
number.increment()


print(number.value())<jupyter_output>3<jupyter_text>INHERITANCE<jupyter_code>class Person:
  def __init__(self,firstname,surname):
    self.firstname = firstname
    self.surname = surname

  def fullname(self):
    print(self.firstname,self.surname)

person = Person("Xavier","Ocasion")
person.fullname()

class Engineer(Person):
  pass

person2 = Engineer("Engr.","Xavier")
person2.fullname()<jupyter_output><NAME>
Engr. Xavier<jupyter_text>POLYMORPHISM<jupyter_code>class RegularPolygon:
  def __init__(self,side):
    self.side = side
class Square(RegularPolygon):
  def area(self):
    return self.side * self.side
class EquilateralTriangle(RegularPolygon):
  def area(self):
    return self.side * self.side * 0.433

obj1 = Square(8)
print(obj1.area())

obj2 = EquilateralTriangle(9)
print(obj2.area())<jupyter_output>64
35.073
{'fraction_non_alphanumeric': 0.12810601877415792, 'fraction_numerical': 0.01601325234676974, 'mean_word_length': 5.04, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, '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': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '515316', 'license': 'Apache-2.0', 'n_tokens_mistral': 708, 'n_tokens_neox': 659, 'n_words': 131, 'path': 'OOP_Concepts_2.ipynb', 'repo_name': 'AlessandroXavierOcasion/OOP-1-1', 'size': '1819'}