Object-oriented programming
In the examples below, we create a class called Human. This class contains the attributes name (for the name of the person) and friend (for the name of the friend). Each of the methods in the Human class contains a list of instructions that makes use of both the name and friend attributes.