comp science final boss

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/26

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

27 Terms

1
New cards

Object vs Instantiation An object is an abstract entity that contains properties (attributes) and behavior (methods). Instantiation is the process of creating a specific object from a class using a constructor.

2
New cards

Encapsulation Encapsulation is the practice of hiding an object’s internal properties and requiring access through public methods (e.g. accessors and mutators).

3
New cards

Inheritance Inheritance is the mechanism by which one class (a subclass) inherits the properties and methods of another class (a superclass).

4
New cards

Polymorphism Polymorphism is the ability of different classes to define methods with the same name but different implementations.

5
New cards

Advantages of Encapsulation Encapsulation improves security

simplifies maintenance and promotes modular design by clearly defining interfaces.

6
New cards

Advantages of Inheritance Inheritance promotes code reuse

reduces redundancy and supports extensibility.

7
New cards

Advantages of Polymorphism Polymorphism increases flexibility

simplifies code maintenance and allows different objects to be treated using the same interface.

8
New cards

Advantages of Libraries and Objects Libraries and objects reduce development time

promote reuse and support modular programming.

9
New cards

Disadvantages of OOP OOP can lead to complex structures

higher memory use and more planning compared to procedural programming.

10
New cards

Method A method is a function defined within a class that performs a specific behavior when called on an object.

11
New cards

Accessor An accessor is a public method used to return the value of a private property.

12
New cards

Mutator A mutator is a public method used to change the value of a private property.

13
New cards

Constructor A constructor is a special method that initializes an object when it is instantiated.

14
New cards

Method Signature A method signature includes the method name and the list of parameter types in order.

15
New cards

Return Value A return value is the output that a method sends back to the caller.

16
New cards

private Only accessible within the same class.

17
New cards

protected Accessible within the same class and any subclass.

18
New cards

public Accessible from any class.

19
New cards

extends Indicates that a class inherits from another class.

20
New cards

static Belongs to the class itself rather than any specific instance.

21
New cards

Open Source Movement The Open Source movement promotes making code publicly available so others can use

modify and distribute it.

22
New cards

Class A class is a blueprint for creating objects with defined properties and methods.

23
New cards

Instantiation Instantiation is the process of creating a concrete object from a class using the new keyword.

24
New cards

Abstraction Abstraction means hiding unnecessary implementation details and showing only essential features.

25
New cards

Object-Oriented Programming OOP is a programming style that uses objects combining properties and behavior to model real-world entities.

26
New cards

UML Class Diagram A UML class diagram shows classes

their attributes and methods

27
New cards