Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132939 views
License: OTHER
1
public class Baby {
2
/**
3
* Write something in the constructor
4
* @param weight set weight in gramm
5
* @param size the size in cm
6
* @param loudness the loudnes in dB
7
*/
8
public Baby(int weight, int size, float loudness) {
9
super();
10
this.name = name;
11
this.weight = weight;
12
this.size = size;
13
this.loudness = loudness;
14
}
15
16
/** Der Vor- und Nachname des Babys */
17
public String name;
18
19
/** Gewicht in Gramm */
20
public int weight;
21
22
/** Größe in cm */
23
public int size;
24
25
/** Lautstärke in dB */
26
public float loudness;
27
}
28
29
30