Patient needs a doctor

Report a typo

Given a class named Patient. It has one string property name.

You must add the say member function. The function prints the text containing the name of a patient (instead of "...") and their desire to see a doctor:

Hello, my name is ..., I need a doctor.

The function doesn't take any arguments and returns nothing.

Write a program in Kotlin
class Patient(val name: String) {

// write the say method here
}
___

Create a free account to access the full topic