ABSTRACT

This chapter highlights that one of the characteristics of the object-oriented language (OOP) is encapsulation. Encapsulation is about programmers ignoring the internal operation of objects and only being able to see their available methods. Python is an object-oriented language. The chapter tries to clarify a few of the many new words such as class, method, instance, attributes, polymorphism, inheritance, etc. A class can be a data type such as string or set, but also something more complex like genome, people, sequences, etc. Attributes are variables associated with all the objects of a class. Polymorphism is the ability of different types of objects to respond to the same method with a different behavior. Encapsulation is the ability to hide the internal operation of an object and leave access for the programmers only through their public methods. The chapter looks at some Biopython structures to get familiar with them.