How would you explain the concepts of inheritance and class structures in an object-oriented language?