public classssssss Student -- syntax error -- typo
this->println("Hello Universe") -- syntax error -- not a statement (->)
Fortunately, the Java compiler alerts us of syntax errors, allowing us to fix them before trying to run the program. This prevents the program from "blowing up" (i.e. "crashing").
Assume that we are "coding" (programming) in the Student class.
Can our "program code" use the firstName variable (defined in Student)?
Can our "program code" use the width variable (defined in Rectangle)?
Description
"Context" will help us answer these questions. Tips
Always know "where you are" when you are coding (your "context"). We are given that we are programming inside the "Student" class. Hints
Given that we are "on/inside" a Student object, we can access it's variables.
We can not access Rectangle's variables -- they exist in a different context/environment. Solution
Introduction To Objects With Java
(Chapter 304 - Variables)