Which of these describes inheritance?

Classes that inherits the functionality of another classClasses that only inherits variables from other classes

Classes that inherits the functionality of another class.