Java 06: Basic Classes
7 Responses to “Java 06: Basic Classes”Leave a ReplyPosted on May 13th, 2007 by admin Filed under Java Basics | 7 Comments » |
|
Java 06: Basic Classes
7 Responses to “Java 06: Basic Classes”Leave a ReplyPosted on May 13th, 2007 by admin Filed under Java Basics | 7 Comments » |
|
i love ur vid’s man …
i love ur vid’s man good stuff i learn alot thanxx
public class asdfg …
public class asdfg {
public static void main(String[] args) {
player pl = new player(“Bobby”);
System.out.println(“p1.username”);
}
}
You made the player …
You made the player object pl and used it as p1. Take p1.username out of quotes.
Indent and place …
Indent and place the closing braces on their own line.
good lesson my …
good lesson my teacher
you should tell …
you should tell them about the namespace “this” referencing the class variable
WELL DONE again a …
WELL DONE again a bit fast but good thanks