Missing 'public' in Class declaration

it gives me different error when i add public before the class name.