Coding Exercise: Classes
Explore how to define and implement a public class in C#. You will learn to create properties, multiple constructors, and a method to display object details. This lesson helps you write a functional House class and apply concepts of object-oriented programming to build a simple console-based application.
We'll cover the following...
We'll cover the following...
Problem
This exercise on creates a class for a house inventory program. Create a console-based application called House Inventory App that meets the requirements below.
-
Create a class and name it
House. -
The
Houseclass must have the following properties:Addressasstring