CourtCase

class CourtCase(val plaintiff: Entity, val defendant: Entity)

Each instance of this class represents a single court case in which one Entity is the plaintiff and another is the defendant.

This toy class represents no other information about the court case beyond the two legal entities involved.

Value parameters:
defendant

the entity that responds against an accusation in the case

plaintiff

the initiator of the court case

class Object
trait Matchable
class Any

Value members

Concrete methods

override def toString: String

Describes the court case. The description is a string of the form "PLAINTIFF v. DEFENDANT", using the name of the two parties. E.g., "Jane Doe v. ACME Corp".

Describes the court case. The description is a string of the form "PLAINTIFF v. DEFENDANT", using the name of the two parties. E.g., "Jane Doe v. ACME Corp".

Definition Classes

Concrete fields