B4X FEED Extending the functionality of a Class -by modifying or supplementing

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: Extending the functionality of a Class -by modifying or supplementing است. این موضوع تا کنون 65 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع Extending the functionality of a Class -by modifying or supplementing
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
65
پسندها
0
آخرین ارسال توسط PracticalSoft
وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.
Jun 6, 2020
11,517
4,383
Hello all,
I came across this Log To Text File Class in this thread.


I found it quite useful.
I wanted to introduce two additional methods to read the log file and to delete the log file.
Both the methods require the log file name which is internal to the Class.
(Actually, we specify the name of the log file, but internally, the name is appended with the current date. So, possibly, I can workaround that limitation of not having the internal file name).

How do I write a new class module which adds only the two additional methods, keeping the original class unmodified ?
I found this thread after searching the forum.

which says,

It is not possible to extend a class as there is no support for inheritance.
Click to expand...
That was way back in 2014. Is it not possible...



 

وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.
عقب
بالا