Please enable JavaScript.
Coggle requires JavaScript to display documents.
Java OOP - Coggle Diagram
Java OOP
class
parts
methods
ways to overload?
changing
data type
numbers of arguments
override
CANNOT override static method
bound to class
belongs to class area
instance method
bound w/ object
belongs to heap area
can main method?
no because its static
VS
constructor
automatic invoke when object is created
method called explicitly
meaning function thats..
operate on instance of class
properties
static
shared
to all objects [true]
meaning
logical intentity
blueprint of an object
package
collection of classes
types
Subclass
does the inheriting
Superclass
inherited
Charateristics
Inheritance
one object acquires parent objects?
properties
behaviours
pros
provides code reusability
achieve runtime polymorphism
supports Multiple and hybrid inheritance
Interface Only
Polymorphism
many forms
one task
performs in different ways
Abstraction
diliberately incomplete
design w/ implementation gaps for subclasses
Encapsulation
Top-level class modifiers
public
abstract
final
Acess modifier
public
anywhere
protected
same package
subclasses
private
w/in class
object
ways to create
new keyword
newInstance()
clone()
Factory Method
meaning
instance of a class
any entity that has
state
behavior
keywords
super
invokes superclass constructor
this
invokes same classs constructor
meaning
organize program around its data
Interface
method signature only