Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialkrishna kanth allu
624 PointsI cant able to find the error
I think I had concatenated the string correctly but it shows error.
namespace Treehouse.Models
{
public class VideoGame
{
public int Id{get;set;}
public string Title{get;set;}
public string Description{get;set;}
public string[] Characters{get;set;}
public string Publisher{get;set;}
public string DisplayText
{
get
{
return Title + "(" + Publisher + ")" ;
}
}
}
}
2 Answers
Jennifer Nordell
Treehouse TeacherHi there! You're doing terrific! Sincerely. You're one space off. Right now what's being returned (using their example and your code) would be "Super Mario 64(Nintendo)". But what they want is for it to return "Super Mario 64 (Nintendo)". Note the space between the 64 (which is the end of the publisher) and the open parenthesis. I'll leave the placement up to you, but let me know if you're still stuck!
Good luck!
krishna kanth allu
624 PointsIt helps Thank you.