What is it called when an object has an object of the same type within itself?
Example:
public class Foo{ public Foo myFoo; }
I do not think there is any specific name for this. Although this concept is used in many different general programming constructs. For example, when you present a graph, tree, or linked list, nodes usually have links to other nodes with which they are linked / connected.
, Foo " ". , , .. , , , , . SQL- , , , . WHERE FilterNode, , Node (, ):
Foo
WHERE
FilterNode
Node
public interface Node { } public class FilterNode implements Node { public Node underlyingNode; public Condition filterCondition; }
, , . , , ( ).
Recursive localization .... :)
To add to what Kibby said, this is a type of compound template
Source: https://habr.com/ru/post/1710625/More articles:How can I quickly add a lot of data from XML to my database? - xmlOn Windows, What Does qmake Add "d" to the Debugging Target? - windowsHow can I search in UIWebView? - iphoneCan I get the short name of the DOS file from PHP? - phpCompiled cache request? - asp.netJQuery loop plugin with different effect on next and previous - jqueryAdd text to video and save output - c #Predictable Capture Options for a .NET Application - .nethighlight color for UITableViewCell - iphonePure Perl parser for strings related to Makefile. - perlAll Articles