Sequence and class diagram

I want to know what is the relationship between the sequence diagram and class diagram?

Class diagram represents the various associations and aggregartion relationships between different classes of the proposed system where as a sequence diagram represents the communication between objects of the classes, object’s life time with respect to the system, actor (who initiated the communication) with the time line.

Dear,

Have any some discussion of the class, sub-class and inheritance?