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
2.2.3 Blood
AQA GCSE Biology > Unit 2: Organisation > 2.2 Animal Tissues, Organs, and Organ Systems
102 cards
1.1.5 Microscopy
AQA GCSE Biology > Unit 1: Cell Biology > 1.1 Cell Structure
43 cards
2.5 Writing Critical Essays
AQA GCSE English Literature > Paper 1: Shakespeare and the 19th-century novel > 2. The 19th-century Novel
108 cards
2.1 Principles of Organisation
GCSE Biology > Unit 2: Organisation
73 cards
1.3.1 Key Beliefs and Teachings
WJEC GCSE Religious Studies > Unit 1: Religious and Non-Religious Beliefs, Teachings, and Practices > 1.3 World Religions (Choose one: Buddhism, Hinduism, Islam, Judaism, Sikhism)
59 cards
4.1 The role of education in society
AQA GCSE Sociology > 4. Education
86 cards
3.4 Jobs, career choices and ambitions
AQA GCSE Spanish > Theme 3: Communication and the world around us
87 cards
1.1.3 Cell Specialization
GCSE Biology > Unit 1: Cell Biology > 1.1 Cell Structure
48 cards
1.5.4 The Economy and Business
Edexcel GCSE Business > Theme 1: Investigating Small Business > 1.5 Understanding External Influences on Business
46 cards
1.1 Structure and Calculation
GCSE Mathematics > 1. Number
33 cards
2.1.1 Eukaryotic cells
OCR A-Level Biology > Module 2: Foundations in biology > 2.1 Cell structure
108 cards
9.3.2 Conservation
Edexcel GCSE Biology > Topic 9: Ecosystems and Material Cycles > 9.3 Human Impact on the Environment
61 cards
1.2 Carbohydrates
AQA A-Level Biology > 1. Biological Molecules
66 cards
4.2 Vietnam War
AQA GCSE History > BD Conflict and tension in Asia, 1950–1975
128 cards
1.1.3 Describing Energy Changes in a System
AQA GCSE Physics > Unit 1: Energy > 1.1 Energy Stores and Systems
40 cards
2.4 The marketing mix
OCR GCSE Business Studies > 2. Marketing
58 cards
3.4. Wildfires
AQA A-Level Geography > Component 1: Physical Geography > 3. Hazards
49 cards
1.1.2 Structures of Memory
AQA GCSE Psychology > Unit 1: Cognition and Behaviour > 1.1 Memory
53 cards
1.1 The purpose and nature of businesses
AQA GCSE Business > 1. Business in the real world
50 cards
2.2 Types of Long-Term Memory
AQA A-Level Psychology > 2. Memory
37 cards
3.5.1 Traditional Drug Sources
AQA GCSE Biology > Unit 3: Infection and Response > 3.5 Discovery and Development of Drugs
31 cards