23 lines
654 B
C#
23 lines
654 B
C#
namespace DBObj
|
|
{
|
|
// artist OOP test
|
|
public class Artist
|
|
{
|
|
public string Name ;
|
|
public string NameSimplified ;
|
|
//public string Phonetic { get; set; }
|
|
//public string Category { get; set; }
|
|
//public int Strokes { get; set; }
|
|
|
|
public Artist(string name,string nameSimplified)
|
|
{
|
|
Name = name;
|
|
NameSimplified=nameSimplified;
|
|
}
|
|
public string getName(bool IsSimplified=false) { return IsSimplified ? NameSimplified : Name; }
|
|
public string getName() => Name;
|
|
|
|
public override string ToString() => $"Name: {Name}";
|
|
|
|
}
|
|
} |