A getter is a public accessor method, used in object-oriented programming, which returns the value associated with a private member of a class.