to built-ins giveraise may make sense for an employeebut might not oop is about code reuse and thatalong with few syntax detailsis most of the oop story in python of coursethere' bit more to it than just inheritance for exampleoperator overloading is much more general than 've described so far--classes may also provide their own implementations of operations such as indexingfetching attributesprintingand more by and largethoughoop is about looking up attributes in trees with special first argument in functions so why would we be interested in building and searching trees of objectsalthough it takes some experience to see howwhen used wellclasses support code reuse in ways that other python program components cannot in factthis is their highest purpose with classeswe code by customizing existing softwareinstead of either changing existing code in place or starting from scratch for each new project this turns out to be powerful paradigm in realistic programming at fundamental levelclasses are really just packages of functions and other namesmuch like modules howeverthe automatic attribute inheritance search that we get with classes supports customization of software above and beyond what we can do with modules and functions moreoverclasses provide natural structure for code that packages and localizes logic and namesand so aids in debugging for instancebecause methods are simply functions with special first argumentwe can mimic some of their behavior by manually passing objects to be processed to simple functions the participation of methods in class inheritancethoughallows us to naturally customize existing software by coding subclasses with new method definitionsrather than changing existing code in place there is really no such concept with modules and functions polymorphism and classes as an examplesuppose you're assigned the task of implementing an employee database application as python oop programmeryou might begin by coding general superclass that defines default behaviors common to all the kinds of employees in your organizationclass employeedef computesalary(self)def giveraise(self)def promote(self)def retire(self)general superclass common or default behaviors once you've coded this general behavioryou can specialize it for each specific kind of employee to reflect how the various types differ from the norm that isyou can code subclasses that customize just the bits of behavior that differ per employee typethe oopthe big picture