Write a program in C#, and create the class Car, having 6 private fields, and 6 public Proprieties, public overloaded 2 Constructors (default and one with six arguments) and a public Method void Display() to display the information about the car (use placeholders).
Loading
Vishal JoshiPosted Feb 10, 2023, 3:58 AM
Hello Dan,
Please review the below code as per your requirement.
You can change code according to your requirement.
Thanks
Naimish MakwanaPosted Feb 10, 2023, 3:54 AM
Hi Dan,
You can use below example.:
Then you can call display method like:
Thanks
Naimish Makwana
Muhammad Imran AnsariPosted Feb 9, 2023, 8:17 PM
HI Dan,
Here is the code example of your program. You can add or modify the private fields or properties according to your requirements: