Save
oop
ppt 4
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
Brex
Visit profile
Cards (21)
Object-oriented paradigm
To
design the program using classes and objects
View source
Object
Related to real-world entities such as book, house, pencil, etc.
Focuses on writing the reusable code
Widespread technique to solve problems by creating objects
View source
Major principles of object-oriented programming
Class
Object
Method
Inheritance
Polymorphism
Data Abstraction
Encapsulation
View source
Class
A blueprint from which an object is constructed by the computer
Describes the methods (functions) and properties (variables) that will exist in an object when it's created
View source
Instantiation
The process of creating an object of a class in memory
View source
Instance
An
object
that is
built
from a
class
and contains
real data
View source
Class attributes
Variables within a class
View source
Method
A block of code which only runs when it is called
Used to perform certain actions
Allows code reuse
View source
Parameters
Information passed to methods, acting as variables inside the method
View source
Arguments
Values passed to parameters when a method is called
View source
Constructor
A special method used to initialize objects
Called when an object of a class is created
Can be used to set initial values for object attributes
View source
Inheritance
The ability to inherit attributes and methods from one class to another
Subclass
(
child
) - the class that inherits from another class
Superclass
(
parent
) - the class being inherited from
View source
Inheritance
Useful for code reusability: reuse attributes and methods of an existing class when creating a new class
View source
Polymorphism
The ability to perform a single action in different ways
View source
Encapsulation
Used to restrict access to methods and variables
Wraps code and data together within a single unit to prevent accidental modification
View source
Object Oriented
In Java, everything is an Object. Java
can be easily extended since it is based on the Object
model.
Platform
Independent
: Unlike many other programming
languages including C and C++, when Java is compiled,
it is not compiled into platform
specific
machine, rather
into platform
independent byte
code. This byte code is
distributed over the web and interpreted by the Virtual
Machine (JVM) on whichever platform it is being run
on.
Simple
: Java is designed to be easy to learn. If you
understand the basic concept of OOP Java, it would be
easy to master.
Secure
: With Java's secure feature it enables to develop
virus-free, tamper-free systems.
Authentication
techniques are based on public-key encryption.
Architecture-neutral
: Java compiler generates an
architecture-neutral object file format, which makes the
compiled code executable on many processors, with the
presence of Java runtime system.
Portable
: Being architecture-neutral and having no
implementation dependent aspects of the specification
makes Java portable. Compiler in Java is written in
ANSI C with a clean portability boundary, which is a
POSIX subset.
See similar decks
3.1.1 Pathogens and Disease
AQA GCSE Biology > Unit 3: Infection and Response > 3.1 Communicable Diseases
114 cards
1.10 Group 1
AQA GCSE Chemistry > 1. Atomic structure and the periodic table
34 cards
2.2.1 The Human Digestive System
AQA GCSE Biology > Unit 2: Organisation > 2.2 Animal Tissues, Organs, and Organ Systems
33 cards
1.1.2 Animal and Plant Cells
GCSE Biology > Unit 1: Cell Biology > 1.1 Cell Structure
70 cards
3.4 Mass Transport
AQA A-Level Biology > 3. Organisms Exchange Substances with Their Environment
135 cards
8.3 Identification of ions by chemical and spectroscopic means
AQA GCSE Chemistry > 8. Chemical analysis
58 cards
7.4.2 Decomposers
AQA GCSE Biology > Unit 7: Ecology > 7.4 Trophic Levels in an Ecosystem
34 cards
1.2.1 Primary Storage (Memory)
OCR GCSE Computer Science > 1.2 Memory and Storage
33 cards
4.3.5 Representation of reactions at electrodes as half equations
AQA GCSE Chemistry > 4. Chemical changes > 4.3 Electrolysis
65 cards
5.2 Social distribution of crime
AQA GCSE Sociology > 5. Crime and deviance
73 cards
4.3.1 The process of electrolysis
AQA GCSE Chemistry > 4. Chemical changes > 4.3 Electrolysis
53 cards
1.2.2 Factors Affecting Enzyme Activity
Edexcel GCSE Biology > Topic 1: Key Concepts in Biology > 1.2 Enzymes
41 cards
1.3.2 Osmosis
AQA GCSE Biology > Unit 1: Cell Biology > 1.3 Transport in Cells
52 cards
2.3 Origins and Outbreak of the Second World War
AQA GCSE History > BB Conflict and tension: The inter-war years, 1918–1939
95 cards
4.1 DNA, Genes, and Chromosomes
AQA A-Level Biology > 4. Genetic Information, Variation, and Relationships Between Organisms
57 cards
4.1.1 The reactivity series
AQA GCSE Chemistry > 4. Chemical changes > 4.1 Reactivity of metals
42 cards
1.1.1 The Role and Functions of the Education System
AQA A-Level Sociology > Unit 1: Education with Theory and Methods > 1.1 Education
47 cards
2.1 Home, town, neighbourhood and region
AQA GCSE Spanish > Theme 2: Popular culture
90 cards
8.2 Identification of common gases
AQA GCSE Chemistry > 8. Chemical analysis
55 cards
5.3 Writing Analytical Responses
AQA GCSE English Literature > Paper 2: Modern Texts and Poetry > 5. Unseen Poetry
28 cards
2.3 The Working Memory Model
AQA A-Level Psychology > 2. Memory
36 cards