 After attending the public schools in his hometown and in Hajdúszoboszló, he continued his education at the Calvinist college in Debrecen.During his time in school, he sketched and painted as a pastime, attracting the attention of the art teacher, who encouraged him to follow an artistic career.His parents, however, preferred a legal career and, in 1866, he entered Budapest University with that goal in mind.