first commit

This commit is contained in:
LinlyBoi
2021-11-06 23:35:03 +02:00
commit 63ba32bb3c
27 changed files with 498 additions and 0 deletions

22
Constructor.java Normal file
View File

@@ -0,0 +1,22 @@
class Scratch //name class sth else lol depending on usage
{
public static void main(String[] args) {
}
public static class Constructor
{
String material;
int height;
double width;
Constructor(String material, int height, double width) //name self-explanatory
{
this.material = material;
this.height = height;
this.width = width;
void build();{
System.out.println("Building a house out of "+this.material + "that is " +this.height + " high and " + this.width + " wide" );
}
}
//they can also be overloaded! f
}
}