We have a similar structure in U.S. law schools, first year at least. There are "cohorts" of about 25 students each that have all of their classes together. Your cohort would be alone in the writing seminar, and combined with one or more sections for larger lectures. That is, cohort 1 might take contracts with cohort 5, torts with cohort two and four, etc. It's nice because there's a small group of people you get to know really well; we formed study groups (and personal friendships) mostly from our initial cohort. Even after the group was broken up by the second year, most of my law school friends were from my cohort.
But for undergraduate (and after the first year of law school) you just choose whatever classes you want. There are typically several sections of every class, so even if you're taking the exact same pre-med schedule as, say, your freshman roommate (Bio 1, Calculus 1, Chemistry 1, English composition, and Spanish, for example) chances are you won't share a single class at a medium or large university. There might be ten or more sections of each of those classes (even more for English composition, which typically every freshman is required to take) even at a medium-sized university, and thirty or more at a large one.
You often can be in the same section of a class as another person if you make an effort to, but it's pretty complicated to work out since there are so many moving pieces: trying to get well-known (and avoid infamous) professors; trying to avoid 8:00 AM lectures, trying to avoid any classes on Friday, etc. Less popular classes (e.g. Latin instead of Spanish) have only one or two sections, even in a large university, so one's schedule tends to revolve around them.
If you are in an honors program or similar, there will be fewer honors sections to choose from, so you're more likely to share classes with people.