Question
Using C# programming Question 1 [ 2 .5 marks]: Find an object in your home and create a proper UML for it. This object has
Using C# programming
Question 1 [2.5 marks]:
Find an object in your home and create a proper UML for it. This object has to have at least 4 properties ( 2 numbers (either integer or float) and 2 strings ( you may have more if its needed)
Make sure to create accessors for each property in your UML.
Make sure to set all the data privacy and return type properly.
Make sure at least have 2 constructors for your class.
Add at least 2 non-static function you see fit to that object.
Question 2 [2.5 marks]:
Create the class from the UML created. Make sure to implement the overload for your constructor, the accessors and overriding the toString() properly.
Create an array of 4 from your object and show the information in your main() with a for loop.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started