Tagged Questions
8
votes
2answers
165 views
Design: Object method vs separate class's method which takes Object as parameter?
For example, is it better to do:
Pdf pdf = new Pdf();
pdf.Print();
or:
Pdf pdf = new Pdf();
PdfPrinter printer = new PdfPrinter();
printer.Print(pdf);
Another example:
Country m = new …