Challenge: Mixins

Practice your skills for implementing mixins in this challenge.

Implement a new person named ‘student’ who likes to sketch doodles, reads term papers, and runs for 5 miles every day.

Challenge #1: Add a new class for Student.

Challenge #2: Use Mixins from previous lessons to implement student’s behaviors using the following method: sketchDoodles(), reviewTermPaper(), and powerRun().

Hint: Run the code from the main() method after solving the challenge to verify your solution.

void main() {
 //TODO: Uncomment the lines >below to run the code
 //after solving the challenge
 print("Student");
 //Student student = Student();
 //student.sketchDoodles();
 //student.reviewTermPaper();
 //student.powerRun();
}

Get hands-on with 1400+ tech skills courses.