Cerca
Heus ací els resultats de la cerca.
Resultats de text complet:
- 2.7 Encapsulation
- unt(self,account): raise AccountError("No es pot modificar un número de compte!") ... _balance != 0: raise AccountError("No es pot esborrar un compte amb saldo diferent de 0") else: self.__account = None ... if money < 0: raise AccountError("No es pot deixar el compte en negatiu") if (abs
- 2.6 Abstract classes
- rammers, it would be useful to have some means of establishing requirements for classes in matters of ... (API) for a set of subclasses. This capability is especially useful in situations where your team or t... can_document(self): print("El document ha estat escanejat") def get_scanner_status(self): fax = "" if self.fax_machine == False else "
- 1.1 Classes, Instances, Attributes, Methods — introduction
- at you are familiar with the basics of OOP, so to establish an understanding of common terms, we shoul... def turn_on(self): print("el mòbil %s està engegat" % (self.number) ) def turn_off(self): print("el mòbil %s està apagat" % (self.number) ) def call(sel
- 2.8 Composition vs Inheritance - two ways to the same destination
- When you are reckless, then with the inheritance (especially multiple inheritances) you can create a h
- 2.9 Inheriting properties from built-in classes
- ose of you who have taken the course “Programming Essentials in Python”, the IBAN Validator should be