Informatik. Warum kann eine Klasse existieren ohne Objekt aber ein Objekt nicht ohne Klasse?
Kann mir das jemand beantworten bitte? Ich verstehe das nicht so ganz.
Kann mir das jemand beantworten bitte? Ich verstehe das nicht so ganz.
Indem man sozusagen, eine Versand email vorfertigt mit Downloads und diese dann beim Kauf automatisch versendet wird. Welche Webshop anbieter haben dieses Feature?
Hallo Zusammen. Für mein Portfolio und einem Arbeitskollegen, erstelle ich gerade eine Shopping-Website. Folgendes Problem: Wenn ich mit SQL eine Datenbank erstelle, diese dann in Node.js einbinde, wird diese Datenbank beim Provider (‘SSD-Hosting’) aktiv bleiben bzw. mit gehostet? Ziel ist ein automatisiertes Login System und ein Einkaufssystem wo die Login-Daten und die Einkäufe in meiner…
gibt es eine Homepage wo man gratis selber Herstellen kann?
Hey, ich habe den Quicksort Algorithmus folgendermaßen beschrieben bekommen: Nun habe ich eine Methode lowerMedian(), die den Median einer Liste bestimmt. Wie genau muss ich diese Methode nun im Quicksort algorithmus einsetzen, damit dieser als Pivot Element immer den Median nimmt, die Laufzeit also O(log(n)) ist?
Ich habe ein Chromebook und kann mir noch nicht direkt ein Laptop fürs Studium holen. Im Studium fangen wir mit der Programmiersprache Java an. Kann ich Java auf einem Chromebook einfach installieren? Wenn ja wie? Ist das programmieren auf dem Chromebook anders als auf nem „richtigen“ Laptop?
Wie geht das? Jetzt abgesehen von Web Entwicklung. Also große Programme haben das ja immer.
The class is virtually the “construction plan” for the objects.
And it is called “class” (instead of simply “construction plan”) – in the sense of “grouping” or “classification” – because all objects of a class are similar.
Example: Class “Auto” –> is used to create objects “Polo”, “Porsche 911” and “Beetle”. All these objects are similar, have similar properties (as they were specified by “Auto”.
A class “dog” can create objects that have nothing to do with cars. The objects “Dobermann”, “Pinscher” and “Schäferhund” are different than cars. They are their own group/class.
The class defines how the object “views”.
The program knows on the basis of the class (or what is made of it) where the data in the RAM are to be written by the object and how they are to be written there and where the code of the methods is.
However, you can create an object without an (own) class, while Java uses “Object” as a class. It only brings you very little in most cases.
The class specifies which parameters are stored, which methods exist and how these are defined. Without this information, there can be no object – without defining a class, the object would be useless and “empty”.
I have heard from an IT autist that there are no objects but only instances of objects.
Imagine it as a family. The class is the parent and the object the child. The object inherits from this class. But no child can exist without a parent. However, parents can exist as they were there first even without the existence of the child.