O GoConqr está de visual novo! Conte para nós o que você achou.

Mapa mental

Python OOP(Object Orianted Programming)

Briache Issam Inglês

Conteúdo do mapa

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.....)

Informações

Descrição
Mapa Mental sobre Python OOP(Object Orianted Programming), criado por Briache Issam em 17-08-2021.
Criado por
Briache Issam · ago 2021
Atualizado
20 ago 2021
Visualizações
1
Avaliação

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?