GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Mindmap

Python OOP(Object Orianted Programming)

Briache Issam Englisch

Inhalt der Mindmap

Python OOP(Object Orianted Programming)

  1. Every thing in Pyhton belongs to a specific class .Like (int class).and we can creat our own class usin: class ClassName()

  2. In this class we define some functions that will be executed if we call them as attributes of the onject that belongs on this new created class

    • to execute a function in the class use: ObjectName=ClassName() ObjectName.functionName()
  3. every function defined in the class take at less 1 argument called:self. that self is represinting the Object of ths class

    • the function can have some attributes we write: self.AttributeName=an argument or something else
  4. Containership

    • It's a way that allows a class to inharites the Methods of another class
      • we define the name of the class that its Methods will be inherited by the second class,we define it as a value of a variable in the second class.so in that way works the Containership
  5. Inharitance

    • to inharite the Methods of a class we use : class NewClassName(OldClassName):
      • in the second class we should add super().__init__()method that allows us to access to the Methods of the first class
        • The Multi-Level inharitance means that every class can inharites the Methods of the previous class whatever the number of class
          • The Multiple inharitance means that a class can inharites the Method of different class we write: class NewClassName(class_1,class_2.....)

Informationen

Beschreibung
Mindmap am Python OOP(Object Orianted Programming), erstellt von Briache Issam am 17/08/2021.
Erstellt von
Briache Issam · Aug 2021
Aktualisiert
20 Aug 2021
Aufrufe
1
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck