Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

Inheritance

$
0
0

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?


Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>