2
নকশা: অবজেক্ট পদ্ধতি বনাম পৃথক শ্রেণির পদ্ধতি যা অবজেক্টটিকে প্যারামিটার হিসাবে গ্রহণ করে?
উদাহরণস্বরূপ, এটি করা কি ভাল: Pdf pdf = new Pdf(); pdf.Print(); বা: Pdf pdf = new Pdf(); PdfPrinter printer = new PdfPrinter(); printer.Print(pdf); আরেকটি উদাহরণ: Country m = new Country("Mexico"); double ratio = m.GetDebtToGDPRatio(); বা: Country m = new Country("Mexico"); Country us = new Country("US"); DebtStatistics ds = new DebtStatistics(); …