This is true for drama: the playwrights who write plays often incorporate aspects of their own lives into the plays, be it their character, or in their influence from other persons or social aspects of their lives. This is clearly evident in Oscar Wilde's The Importance Of Being Earnest.
Many of the, especially social themes and issues of Wilde's life are contextually applied to or expressed in The Importance Of Being Earnest. Class and superiority, gender themes with regards to marriage or wealth and the general hypocrisy, double meanings and the lives of the characters. The play generally takes a comical (farce), or absurd tack in exploring the setting, storyline and monologue; these are used as an escape route from, but reflect within the boundaries of the Victorian style.
Social class is an issue that was apparent in Wilde's lifestyle, dress sense and manner. As many biographies have indicated he was the first person to become "famous for being famous". His literal works were an important contributor to his great recognition; although other factors were very important in conveying his attitudes and ideals; especially when it came to people making the connections between Wilde and the characters in his plays.
The character of the Dandy was an important addition Wilde made to the style of play and is noticed in characters such as Algernon- who would to a degree be based on Wilde; a wealthy, well dressed character. Algernon also exercises a sense of social superiority over characters through his unusual and rather excentric behaviour in the play such as
Bibliography: http://www.sparknotes.com/lit/earnest/context.html http://www.sparknotes.com/lit/earnest/themes.html