superstar_v2/DBObj/Artist.cs
2025-04-07 16:54:10 +08:00

33 lines
719 B
C#

namespace DBObj
{
// artist OOP test
public class Artist
{
public string Name { get; set; }
public string Phonetic { get; set; }
public string Category { get; set; }
public int Strokes { get; set; }
public Artist(string name, string phonetic, string category, int strokes)
{
Name = name;
Phonetic = phonetic;
Category = category;
Strokes = strokes;
}
public override string ToString()
{
return $"Name: {Name}, Phonetic: {Phonetic}, Category: {Category}, Strokes: {Strokes}";
}
}
}