Yes, typically class size is the constraint to consider. At the same time, learning objectives are also something to carefully consider. If you were teaching speech communication for example, it might not be inappropriate to ask all students to do oral presentations - despite large class sizes.