RE: constraints inside classes