Ihaveanabstraction classperformer thathassubclassessoloand group.SoloArtist can only createrefererensto classMemberthatMemberSoloartist.KlasenArtistisjustastringname.Groupmembershaveanarray that willinheritfrom the subclassPersonfirst nameandlast name.Personis a subclass tomembership.Klassen Music LibraryhasanArtistarray that will holdall the artists.Howdo I instantiateboth groupandsolo artistso that I canaddtothe Artistarray?
↧