Advertisement
nuggetin

adafasdasafdasfasdxcdsvqecvqefqvqvq

Nov 23rd, 2021
974
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.25 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _09TaskPerformance1_midterm
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             Console.WriteLine("Hello World!");
  10.         }
  11.  
  12.  
  13.         double getCircleDiameter(double r)
  14.         {
  15.             return r * 2;
  16.         }
  17.     }
  18.  
  19.     struct Product
  20.     {
  21.         public Product(string code, string price, string desc)
  22.         {
  23.             string product_code = code,
  24.             product_price = price,
  25.             product_desc = desc;
  26.         }
  27.         public string product_code
  28.         {
  29.             get
  30.             {  return product_code; }
  31.             set
  32.             { product_code = value; }
  33.         }
  34.         public string product_price
  35.         {
  36.             get
  37.             { return product_price; }
  38.             set
  39.             { product_price = value; }
  40.         }
  41.         public string product_desc
  42.         {
  43.             get
  44.             { return product_desc; }
  45.             set
  46.             { product_desc = value; }
  47.         }
  48.     }
  49.  
  50.     class Person
  51.     {
  52.         string full_name;
  53.         public Person()
  54.         {
  55.             full_name = null;
  56.         }
  57.     }
  58. }
  59. namespace Account
  60. {
  61.     class Account
  62.     {
  63.         string account_number;
  64.     }
  65. }
  66.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement