null
US
Sign In
Sign Up for Free
Sign Up
We have detected that Javascript is not enabled in your browser. The dynamic nature of our site means that Javascript must be enabled to function properly. Please read our
terms and conditions
for more information.
Next up
Copy and Edit
You need to log in to complete this action!
Register for Free
13826178
OOP (Object Oriented Programming)
Description
This is specifically designed for and references Java code but is useful for all Object Oriented languages.
No tags specified
computing
computer science
software
programming
objects
classes
inheritance
computing
a-level
Mind Map by
Adam Cook
, updated more than 1 year ago
More
Less
Created by
Adam Cook
over 6 years ago
1443
3
0
Resource summary
OOP (Object Oriented Programming)
Class
Description of how objects should be treated.
Describes how data is stored
Describes the methods executed on that data
Static: Associated with the class. (Runs the same regardless of data).
Object
A specific instance of a class
Specific instances of data and methods
Non-Static: Associated with the object (Needs an object to be initialized).
This: Changes data within object. this.numPeople = 2; means this objects numPeople attribute should be set to 2
Attributes
What is stored in the object
Attributes should never be public always private.
Behvaiours
What is done with the object (the methods)
Typically operations on the data
Methods can be overloaded. i.e. the method is the same but it has different parameters
Constructors
Initalises object
Reference
Something is passed by reference if the method is simply given a reference (essentially a location) to the data rather than the data itself
All capital letter data types are references.
Inheritance
Relationships between classes. Used to create more specific versions of classes
Superclass: The parent of a class is referred to as a superclass.
Stores data and methods common to all subclasses
Can also implement default behaviours that can be overwritten
Protected methods and attributes are available to all subclasses
Subclass: The child of a superclass. A more specific version of a superclass. I.e. What a bike is to a vehicle
Inherits methods and attributes of superclass
Can add additional attributes and methods
Can overwrite behaviours of the superclass
super keyword refers to instance of superclass can be used to run methods and for initalisation
extends keyword used to state the superclass of a subclass: Bike extends Vehicle
Show full summary
Hide full summary
Want to create your own
Mind Maps
for
free
with GoConqr?
Learn more
.
Similar
Software Processes
Nurul Aiman Abdu
Computing Hardware - CPU and Memory
ollietablet123
A level Computing Quiz
Zacchaeus Snape
Types and Components of Computer Systems
Jess Peason
Input Devices
Jess Peason
SFDC App Builder 2
Parker Webb-Mitchell
Data Types
Jacob Sedore
Intake7 BIM L1
Stanley Chia
DNA Basics
Sarah Juliette B
Output Devices
Jess Peason
Design Patterns
Erica Solum
Browse Library