default method

پیشنهاد کاربران

**روش پیش فرض** یا **متد پیش گزیده**
به روشی در برنامه نویسی شیءگرا گفته می شود که در زمانی اجرا می شود که تابع عام یک شیء ورودی با کلاسی دریافت کند که روش اختصاصی برای آن کلاس تعریف نشده باشد؛ این روش به عنوان گزینه آخر عمل می کند و رفتاری عمومی و معمولاً ساده تر از روش های تخصصی دارد
...
[مشاهده متن کامل]

When you call the print function on an object that belongs to a class without its own specific print method R automatically falls back to the default method which displays the object in a basic way that may not be pretty or informative but at least prevents the software from crashing or refusing to work entirely