I learnt that sentences in English can be classified based on their structure and function. According to structure, they include: simple sentence, complex sentences and compound sentences while they include: declarative, interrogative, imperative and exclamatory according to function.
The above statement contains complex and compound sentences.