You are implementing a console application in the context of your selected theme(Hotel Booking system). This application is composed by a console interface, exactly like class exercises and examples. Your application must meet the implementation requirements detailed below. 1. Demonstrate your knowledge of classes, by implementing a problem domain with at least three classes. Your classes must have: a. At least one auto-implemented property; b. At least one fully-implemented property; c. At least one automatically-calculated property; d. At least one one-to-one relationship between them; e. At least one one-to-many relationship between them; f. Properties defined in a variety of data types; g. Exactly three constructor definitions; h. An overridden ToString method.
You are implementing a console application in the context of your selected theme(Hotel Booking system). This application is composed by a console interface, exactly like class exercises and examples.
Your application must meet the implementation requirements detailed below.
1. Demonstrate your knowledge of classes, by implementing a problem domain with at least three classes. Your classes must have:
a. At least one auto-implemented property;
b. At least one fully-implemented property;
c. At least one automatically-calculated property;
d. At least one one-to-one relationship between them;
e. At least one one-to-many relationship between them;
f. Properties defined in a variety of data types;
g. Exactly three constructor definitions;
h. An overridden ToString method.
C#
Step by step
Solved in 4 steps