Sure, a little. 

Any tiddler could be thought of as an object, where the fields are 
properties.

In terms of inheritance, there's a design patter for "having a ..." (which 
I'll call HA). The HA pattern turns out to often be more useful than 
conventional inheritance. And it can be emulated with transclusion in TW.

tiddler A:

created: 20191214183217169
modified: 20191214183238380
tags: 
title: A

My A Text

{{||B}}

tiddler B:

created: 20191214183217169
modified: 20191214183238380
tags: 
title: A

My A Text

{{||B}}

The invoking tiddler, that "inherits" properties from A and B :

created: 20191214183316677
modified: 20191214183349224
stuff: inheritance stuff
tags: 
title: inheritance

{{||A}}

The tiddler "inherits" (HA inheritance because it "has" a transclusion) 
from "A", which inherits from "B". Note that B reveals the field "stuff", 
but back in "inheritance", it's the local field "stuff" that is shown, not 
the field down in B -- just the way inheritance would work.

Have fun

On Saturday, December 14, 2019 at 9:57:07 AM UTC-8, Mohammad wrote:
>
> I am practicing a first level simple object oriented programming in 
> Tiddlywiki!
> It is not like C++ or Java but some of the useful feature of OOP can be 
> implemented 
> and this make scripting even simpler in Tiddlywiki!
>
>
> What do you think?
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ddeb8b99-fdc8-437d-8ff5-6149a0937f42%40googlegroups.com.

Reply via email to