superstar_v2/DBObj/Artist.cs

23 lines
563 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-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-18 15:22:47 +08:00
public Artist(string name)
2025-04-07 16:54:10 +08:00
{
Name = name;
}
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
}
}
}