diff options
| author | Florian Merz <me@fiji-flo.de> | 2021-02-11 14:45:38 +0100 |
|---|---|---|
| committer | Florian Merz <me@fiji-flo.de> | 2021-02-11 14:45:38 +0100 |
| commit | 4ab365b110f2f1f2b736326b7059244a32115089 (patch) | |
| tree | c3c7c0219f728ade49a78c238c51cc0c8d06ebd6 /files/de/glossary/konstruktor/index.html | |
| parent | 8260a606c143e6b55a467edf017a56bdcd6cba7e (diff) | |
| download | translated-content-4ab365b110f2f1f2b736326b7059244a32115089.tar.gz translated-content-4ab365b110f2f1f2b736326b7059244a32115089.tar.bz2 translated-content-4ab365b110f2f1f2b736326b7059244a32115089.zip | |
unslug de: move
Diffstat (limited to 'files/de/glossary/konstruktor/index.html')
| -rw-r--r-- | files/de/glossary/konstruktor/index.html | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/files/de/glossary/konstruktor/index.html b/files/de/glossary/konstruktor/index.html deleted file mode 100644 index 7c719b55ea..0000000000 --- a/files/de/glossary/konstruktor/index.html +++ /dev/null @@ -1,47 +0,0 @@ ---- -title: Konstruktor -slug: Glossary/Konstruktor -translation_of: Glossary/Constructor ---- -<p>Ein <strong>Konstruktor</strong> gehört zu einer Instanz eines bestimmten Klassen-{{glossary("object","Objekts")}}.</p> - -<p>Der Konstrutktor instanziiert dieses Objekt und bietet Zugriff auf seine privaten Informationen. Das Konzept des Konstruktors findet in den meisten {{glossary("OOP","Objekt-orientierten Programmiersprachen")}} Anwendung. Im Allgemeinen wird ein Konstruktor in {{glossary("JavaScript")}} in der Instanz einer {{glossary("class","Klasse")}} deklariert.</p> - -<h2 id="Syntax">Syntax</h2> - -<pre class="brush: js">// This is a generic default constructor class Default -function Default() { -} - -// This is an overloaded constructor class Overloaded -// with parameter arguments -function Overloaded(arg1, arg2, ...,argN){ -} -</pre> - -<p>Um einen Konstruktor aufzurufen, verwenden Sie den <code>new</code> operator, welcher einer {{glossary("variable","Variable")}} eine neue {{glossary("object reference","Objekt-Referenz")}} zuweist.</p> - -<pre class="brush: js">function Default() { -} - -// A new reference of a Default object assigned to a -// local variable defaultReference -var defaultReference = new Default(); -</pre> - -<p> </p> - -<h2 id="Siehe_auch">Siehe auch</h2> - -<h3 id="Generelles_Wissen">Generelles Wissen</h3> - -<ul> - <li>{{Interwiki("wikipedia", "Constructor_%28object-oriented_programming%29", "Konstruktor")}} auf Wikipedia</li> -</ul> - -<h3 id="Technische_Referenz">Technische Referenz</h3> - -<ul> - <li><a href="/en-US/docs/Web/JavaScript/Introduction_to_Object-Oriented_JavaScript#The_Constructor">The constructor in object oriented programming for JavaScript</a> on MDN</li> - <li><a href="/en-US/docs/Web/JavaScript/Reference/Operators/new">New operator in JavaScript</a> on MDN</li> -</ul> |
