The object of you affection project

This is my class Profile page

the code works fine but only prints bio and the first hobby. Any idea what I’m doing wrong? I want the rest of the array hobbies to be printed.

Hello! Here:

foreach (string hobby in hobbies)
      {return bio += $" - {hobby}\n";}

You return the result, which means the loop will exit after only one iteration (since return exits the function, and any loop within it). Does the viewProfile() method need to return anything?