A data member is a variable or object that belongs to a class in object-oriented programming and holds data pertinent to the objects created from that class. It defines the attributes or characteristics that objects of the class can have, playing a crucial role in encapsulation and data management within programs.