Python Programming for the Absolute Beginner, 3rd Edition

O

object-oriented programming (OOP)

attributes, 229

inheritance, 268–269

overview, 4, 229

objects

combining, 264–268

encapsulation, 243–244

instantiated, 229, 232

multiple, creating, 235

printing, 239

objects_overlapping() method, 425

old-style classes, 249

OOP (object-oriented programming)

attributes, 229

inheritance, 268–269

overview, 4, 229

open() function, 201, 211

open_file() function, 220–221

opening text files, 201–202

operator overloading, 43

operators

in, 99

lists, 131

tuples with, 118

addition (+), 27, 120

augmented assignment, 46–47

comparison, 59–60

logical, 81–83

mathematical, 31–32

repetition (*), 28

or logical operator, 83

overlapping_objects() method, 351, 365

overriding methods, 275–279

Категории