Trait (computer programming)


Written By: Ehsan Jahandarpour

In computer programming, a trait is a concept used in object-oriented programming, which represents a set of methods that can be used to extend the functionality of a class.