OOP

0.0(0)
Studied by 1 person
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/40

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 1:31 PM on 5/20/24
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

41 Terms

1
New cards
Object oriented programming
is a method of implementation in which programs are organized as cooperative collections of objects, each of which represents an instance of some class, and whose classes are all members of one or more hierarchy of classes united via inheritance relationships.
2
New cards
Class
Definition of objects that share structure, properties, and behaviors
3
New cards
Instance
Concrete object, created from a certain class
4
New cards
Write Once Run Anywhere
WORA meaning
5
New cards
Methods
used to describe behavior of the objects of a class
6
New cards
Methods
is a set of statements which is referred to by name and can be invoked at any point, in a program. it performs a logical unit of work.
7
New cards
Return type
it indicates the data type of the variable returned by a method
8
New cards
Constructors
is a block of code defined in a class that initializes the newly created object
9
New cards
Constructors
It is structurally very similar to an instance method, but it doesn't have a return type.
10
New cards
Constructors
It is automatically called when the instance of a class is created.
11
New cards
Default Constructors
If a class does not have any constructors
12
New cards
No Argument Constructors
is one that takes no parameters
13
New cards
Parameterized Constructors
a constructor with arguments or parameters
14
New cards
Encapsulation
is the mechanism that binds together code and the data it manipulates, and keeps both safe from outside interference and misuse.
15
New cards
Abstraction
is a process of hiding the implementation details from the user, only the functionality will be provided to the user. In other words, the user will have the information on what the object does instead of how it does
16
New cards
Java
Abstraction is achieved using Abstract classes and interfaces.
17
New cards
Abstract class
is a class that is declared with abstract keyword.
18
New cards
Abstract method
is a method that is declared without an implementation.
19
New cards
Subclass
A method defined abstract must always be redefined in the _______
20
New cards
Inheritance
is the process by which one object acquires the properties of another object.
21
New cards
Subclass
A class that is derived from another class
22
New cards
Super class
The class from which the subclass is derived
23
New cards
Polymorphisms
it means the ability to request that the same methods be performed by a wide range of different types of things.
24
New cards
many forms
Polymorphism comes from Greek word
25
New cards
Members
are the variables and the methods declared in the class
26
New cards
Variable Scope
The member of a class are the variables and the methods declared in the class
27
New cards
This & Super
It refers to the variables and methods of the current class instance.
28
New cards
This & Super
It can also be used to refer to the constructor of the class
29
New cards
Dot operator
A member method can be invoked by joining the class name and the method signature with a _________
30
New cards
Instance Variables
When a member variable or a field is declared within a class definition, every object instantiated from that class contains its own copy of it
31
New cards
Class Variables
There are also cases when all instances of a class share a variable
32
New cards
Static
Such class variables are defined with the keyword
33
New cards
Instance methods
are methods within Java class definition without the use of the static keyword
34
New cards
Class methods
are methods within Java class definition with the use of the static keyword
35
New cards
Access Modifiers
used to set the visibility and accessibility of class, methods or variable
36
New cards
Access control
other way to enforce encapsulation
37
New cards
Public, Private, Protected, Default
Ex. Of Access Modifier
38
New cards
Public
can be access by all
39
New cards
Private
can only access within class
40
New cards
Protected
can only accessed by the class, subclass and classes from the same package
41
New cards
Default
no access modifier declared.