Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _09TaskPerformance1_midterm
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Hello World!");
- }
- double getCircleDiameter(double r)
- {
- return r * 2;
- }
- }
- struct Product
- {
- public Product(string code, string price, string desc)
- {
- string product_code = code,
- product_price = price,
- product_desc = desc;
- }
- public string product_code
- {
- get
- { return product_code; }
- set
- { product_code = value; }
- }
- public string product_price
- {
- get
- { return product_price; }
- set
- { product_price = value; }
- }
- public string product_desc
- {
- get
- { return product_desc; }
- set
- { product_desc = value; }
- }
- }
- class Person
- {
- string full_name;
- public Person()
- {
- full_name = null;
- }
- }
- }
- namespace Account
- {
- class Account
- {
- string account_number;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement