Defining methods for structs to encapsulate behavior and functionality associated with the data type.