namespace RecruitmentTask
public int id { get; set; }
public double totalAmount;
public string customerType;
public DateTime orderDate;
public int numberOfItems;
public void DoStuff(double totalAmount, string customerType, bool isPriority, DateTime orderDate, string x, string y, int z)
if (customerType == "Regular" && isPriority && orderDate.DayOfWeek == DayOfWeek.Sunday && totalAmount > 100)
else if (customerType == "VIP" || (customerType == "Regular" && totalAmount > 200 && !isPriority))
double finalAmount = totalAmount - discount;
Console.WriteLine($"Final amount after discount: {finalAmount}");
Console.WriteLine("VIP customer");
Console.WriteLine("Regular customer");
Console.WriteLine("Other customer type");
Console.WriteLine("Greeting");
Console.WriteLine("Greeting again");
public double CalculateDiscount(double orderAmount, string customer, bool priority)
public class SpecialOrder : Order
public string specialInstructions;
public void SpecialOrderMethod()
static void Main(string[] args)
Order order = new Order();
order.DoStuff(150.0, "Regular", true, DateTime.Now, "Hello", "Unused", 0);