12 - Class Interface
by steen_hansen
HTML
<!DOCTYPE html><meta charset="utf-8" />
<title>12 Object Interface</title>
<div id='js-div' style="width:55%">
<a href='https://github.com/steenhansen/type-czech' target="_blank" class='git-hub'>GitHub Package</a>
<div id='js-code'>the javascript</div>
</div>
<div id="the-explanation" style="width:45%">
<div class='an-explantion'>12 - Object Interface</div>
<div id='explanation-text'>
<br>
We are checking interfaces with inherited classes in the example to the left.
<br><br>
The difference between checkParam_type() and check_interface().
<br><br>
<div style='margin-left:24px'>
checkParam_type() works with non-intertwined
<ul>
<li>Arrays</li>
<li>Closures</li>
<li>IIFEs</li>
<li>Ordinary Objects</li>
<li>Scalars</li>
</ul>
check_interface() accepts interlinked objects that are
<ul>
<li>Classes</li>
<li>ClassFree Objects</li>
<li>OLOOs</li>
<li>Ordinary Objects</li>
<li>Prototypes</li>
</ul>
</div>
</div>
<div id="console-log" >
<div class='a-title'>Console Output</div>
<div id='log-text'></div>
<br>
</div>
<br><br>
<!-- ---------------TYPE 1--------------------------- -->
<script src="https://cdn.jsdelivr.net/gh/steenhansen/type-czech@latest/web-resources/consolelog.js"></script>
<script src="https://cdn.jsdelivr.net/gh/steenhansen/type-czech@latest/web-resources/TypeCzech.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/steenhansen/type-czech@latest/web-resources/type-czech.css">
<!-- ---------------TYPE 1--------------------------- -->
<div id='js-fiddles'>
<a title="Example-Contents"...