The plaintiffs in a class action lawsuit need to come to court. Because the class representative has been appointed the judge will expect them to participate and go to court. The class representative will also need to testify. If there is a class action lawsuit with thousands of plaintiffs then each individual plaintiff will not need to come to court. Like most areas of law there are always exceptions.