SHARE
TWEET

Untitled

a guest Jan 21st, 2020 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. namespace Assignment_2
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             Console.WriteLine("Hello World!");
  10.         }
  11.     }
  12.     public interface IParcelProcessorOnline
  13.     {
  14.         public abstract bool ValidateParcelPaymentInfo();
  15.         public abstract bool HasBeenShipped();
  16.     }
  17.  
  18.     public interface IParcelProcessorCash
  19.     {
  20.         public abstract void ProcessParcel();
  21.     }
  22.  
  23.     public class OnlinePaymentOrder : IParcelProcessorOnline, IParcelProcessorCash
  24.     {
  25.  
  26.         public bool HasBeenShipped()
  27.         {
  28.             return true;
  29.         }
  30.         public bool ValidateParcelPaymentInfo()
  31.         {
  32.             return true;
  33.         }
  34.         public void ProcessParcel()
  35.         {
  36.             //process if everything is ok.
  37.         }
  38.     }
  39.  
  40.     public class CashOnHandPaymentOrder : IParcelProcessorCash
  41.     {
  42.         public void ProcessParcel()
  43.         {
  44.             //process if everything is ok.
  45.         }
  46.     }
  47.  
  48. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top