In the given code, "Animal" is a class that defines the blueprint for creating objects representing animals. It has instance variables and methods to manage animal species, age, and weight.
Related terms
Instance: An instance is a specific occurrence or realization of an object created using the Animal class.
Method: A method is a function associated with an object or a class that performs certain operations on data.
Inheritance: Inheritance allows one class to inherit properties and behaviors (variables and methods) from another class. For example, creating subclasses like "Dog" and "Cat" that inherit from the "Animal" class.