This commit is contained in:
qorg11 2022-02-16 12:01:22 +01:00
parent a5092d1b28
commit f6f597159f
No known key found for this signature in database
GPG Key ID: 343FC20A4ACA62B9
1 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@ Java is object oriented. So that make it suck automatically.
## Stupid syntax
>\>`Car car = new Car`
~~~{.java .numberLines}
public class HelloWorld {
@ -38,7 +39,7 @@ I'm sure the "public class" and "public static void" aren't really necessary. Th
>\>`Object` doesn't have a new method that can be used by any object
As we really care about... I don't really know what they care about,
As we really care about... I don't really know what they care about,
you can't change the object attributes from outside the class, so you
have to create, for each object attribute, 2 methods, one to get the
value of the attribute and other to set the value of the attribute. I