This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@startuml | |
interface Motor { | |
+mover() | |
} | |
interface Chofer { | |
+manejar() | |
} | |
class MotorCombustion implements Motor { | |
+mover() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
#Separare el api: | |
#"https://api.themoviedb.org/3/search/movie?include_adult=false&language=en-US&page=1" | |
class BuscadorTMDB: | |
def __init__(self, api_key): | |
self.api_key = api_key | |
self.base_url = "https://api.themoviedb.org/3/search/movie" | |
def buscar(self, titulo): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@startuml | |
abstract class Figura { | |
+abstract double calcularArea() | |
+abstract double calcularPerimetro() | |
} | |
class Rectangulo extends Figura { | |
-double base | |
-double altura |