class Person(firstName: String, lastName: String, age: Int) { def fullName: String = s"$firstName $lastName" override def toString: String = s"$fullName, Age: $age" } // Create an instance of the Person class val person = new Person("John", "Doe", 30) // Access properties and methods println(person.fullName) // Output: John Doe println(person.toString) // Output: John Doe, Age: 30