Please enable JavaScript.
Coggle requires JavaScript to display documents.
Java 1B (OOP - Advanced (Inheritance, Composition, Encapsulation,…
Java 1B
OOP - Advanced
Inheritance
Composition
Encapsulation
Polymorphism
Unit 2
Arrays
Names
Index number
writting
VARIABLE TYPE [] NAME = new VARIABLE TYPE[ NUMBER OF THINGS IN ARRAY ] ; NAME[0] = 95;
int[] NAME = { 95,80,7, } ;
Usage
Store
Call
1
multiple
For loop
Fixed ammount
Liked lists
infinite amount
linked to successor
element
Node
link
successor
Data
Stored
Writing
Call
LinkedList NAME = new LinkedList();
Handling
add( WHERE, Variable)
WHERE is what position in the list
Variable gets added there
addFirst(Vairable)
adds at the beginning of the list
addLast (Variable)
adds to the end of list
add( Variable)
adds to the end of list
remove
Same things as add but just takes it out of the list
remove( where )
removeFirst ()
remove(Last)
Set
set(WHERE, Variable)
Change value where
Unit 5
Stacks
Queues
Unit 3+4
Object Oriented Programming
Why
Shortens code
Reusability
public vs Private
public
everyone can see
Private
hidden
called upon
use
get
set
Objects and Classes
Objects
Vaiables
States
Methods
Behaviour
Name the method after what it does
HOW TO
public class OBJECT
public VARIABLES
public METHODS
PROGRAM Y
OBJECT NAME = new OBJECT();
Call upon everything using NAME.(variable names and method names)
PROGRAM X
Another Way
public class OBJECT ( String n, String y )
this.name = n ;
this.age = a ;
this. used if no args constructor
Unit 1
Data
Information
Processed
Order
Data
Raw
Types
Temporary
Lost
Fast
Types
Queses
Objects
Stacks
Linked List
Arrays
Permanent
slow
forever
Stored
Direct files
Index files
Sequential files
DataBases
Data Structers
Improtance
Simplify Task
Algorithm efficiency
Information dervived
Operation
Efficient
correct
Types
External
Permanent
Internal
Temporary
Abstract Data Types
Separates
Logical Properties
Seen by user
Implementation Details
hidden from user
Unit 6
Files