To go public, a company must have a track record of growth and other favorable results and hire an investment bank to come in and underwrite the IPO (Morgan Stanley and J.P. Morgan in Udemy case). The underwriters also performed due diligence and verified financial information and business model.