Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace ExamPreparation
- {
- class Product
- {
- private string name;
- public Product() { }
- public Product(string name)
- {
- Name = name;
- }
- public string Name
- {
- get
- {
- return name;
- }
- set
- {
- name = value;
- }
- }
- public override string ToString()
- {
- return $"Product {name}";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement