Mapa mental
Chap 3
Conteúdo do mapa
Chap 3
Access Modifiers
- public
- everybody
- used for classes, methods, and attributes
- private
- within the class
- default
- within class + package
- protected
- with class + package + subclass
- public
methods
- declaration
- access modifier + static + return type + (parameters)
- main
- always automatically called by JVM
- static
- can be used without an object of the class which the method is declared
- parameter vs argument
- paramenter is the expected type specified
- argument is the value passed to the method
- has local variables
- are not initialised by default
- constructor
- every time an object is created the constructor is called
- has the same name of the class
- default construtor is provided by the compiler with no parameter if there is no constructor declared in the code
- It cannot return values
- declaration
class
- characteristics
- java is an extensible language because you create a new type creating new class
- any class can have a main method
- classes in the same directory of the disk are implicitly imported
- attributes
- are initialised by default with zero or null
- characteristics
types
- primitive types
- int
- float
- floating-point numbers with 7 significant digits
- double
- floating-point numbers with 15 significant digits
- char
- byte
- short
- long
- boolean
- reference types
- variables that store the location of objects
- primitive types
Informações
- Descrição
- Computação Mapa Mental sobre Chap 3, criado por André Riker em 04-06-2018.
- Criado por
- André Riker
- Visualizações
- 0
- Histórico
-
- Criado por André Riker · 25 mai 2018
- Copiado por André Riker · 4 jun 2018
- Avaliação