Things you find in a Java program:
Statements are (always) inside a method !!!
Important property of Object Oriented Programming (OOP) Languages:
OOP (= a class) can restrict the access of certain components inside an object
Things you find in a C program:
Statements are (always) inside a function !!!
C is not an Object Oriented Programming (OOP) Languages:
All global variables and all functions can be used by statements in any function !
|