superstar_v2/DBObj/Artist.cs

24 lines
666 B
C#
Raw Normal View History

2025-04-07 16:54:10 +08:00
namespace DBObj
{
// artist OOP test
public class Artist
{
public string Name { get; set; }
2025-04-23 13:55:11 +08:00
public string NameSimplified{get;set;}
2025-04-18 15:22:47 +08:00
//public string Phonetic { get; set; }
//public string Category { get; set; }
//public int Strokes { get; set; }
2025-04-07 16:54:10 +08:00
2025-04-23 13:55:11 +08:00
public Artist(string name,string nameSimplified)
2025-04-07 16:54:10 +08:00
{
Name = name;
2025-04-23 13:55:11 +08:00
NameSimplified=nameSimplified;
2025-04-07 16:54:10 +08:00
}
public override string ToString()
{
2025-04-18 15:22:47 +08:00
//return $"Name: {Name}, Phonetic: {Phonetic}, Category: {Category}, Strokes: {Strokes}";
return $"Name: {Name}";
2025-04-07 16:54:10 +08:00
}
}
}