Create a constructor that initializes the 4 instance


Please program in C#

Create a class called Artist that contains 4 pieces of information as instance variables: name (datatype string), specialization - i.e., music, pottery, literature, paintings (datatype string), number of art items (datatype int), country of birth (datatype string).

Create a constructor that initializes the 4 instance variables. The Artist class must contain a property for each instance variable with get and set accessors. The property for number should verify that the Artist contributions is greater than zero.

If a negative value is passed in, the set accessor should set the Artist's number to 0.

Create a second class ArtistTest that creates two Artist objects using the constructor that you developed in the Artist class. Display the name, specialization, number of art items, country of birth.

Request for Solution File

Ask an Expert for Answer!!
DOT NET Programming: Create a constructor that initializes the 4 instance
Reference No:- TGS02893459

Expected delivery within 24 Hours