OOP prefi

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

1/42

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 5:18 AM on 11/19/24
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

43 Terms

1
New cards

Abstract Class

A class that cannot be instantiated directly and is created to ensure subclasses implement necessary methods.

2
New cards

Abstract Method

A method without a body that must be implemented by subclasses, declared without braces but with a semicolon.

3
New cards

Instantiation

The process of creating an instance of a class; an abstract class cannot be instantiated directly.

4
New cards

Non-Abstract Methods

Methods that can be included in an abstract class, which provide implementation.

5
New cards

Final Class

A class that cannot be extended or subclassed.

6
New cards

Concrete Class

A non-abstract class that must implement all inherited abstract methods from an abstract class.

7
New cards

Access Modifiers

Keywords that set the accessibility level of classes, methods, and variables; must be considered when overriding abstract methods.

8
New cards

Interface

A collection of related abstract public methods; can also include default methods, static methods, and constants.

9
New cards

Implemented Keyword

The keyword used by a class to indicate that it is implementing an interface.

10
New cards

Constants in Interface

Implicitly public, static, and final; keywords are not required for declaration.

11
New cards

Rules in Defining Abstract Classes

Includes characteristics such as not being instantiable directly and inheriting abstract methods.

12
New cards

Overriding Abstract Method

Declaring a new method with the same name, parameter list, and return type in the subclass.

13
New cards

Default Methods

Methods that can be provided in an interface with a default implementation.

14
New cards

Static Methods in Interface

Methods that can also be declared in an interface, although they can't be overridden.

15
New cards

Multi-Interface Implementation

A class can implement more than one interface at the same time.

16
New cards

Inheritance from Interface

An interface or an abstract class can inherit abstract methods from another interface.

17
New cards

Signature of Method

Unique identifiers for methods that include their name and parameter types.

18
New cards

Final Method

A method that cannot be overridden in a subclass.

19
New cards

Private Abstract Method

Not allowed; an abstract method cannot be marked as private.

20
New cards

Duplicate Method Signatures

A class cannot implement multiple interfaces if they contain methods with identical signatures and differing return types.

21
New cards

Implements Keyword

The keyword used by a class to signify it is adhering to an interface's definition.

22
New cards

Public Methods in Interface

All methods in an interface are implicitly public.

23
New cards

Defined Abstract Class

An abstract class that includes at least one abstract method.

24
New cards

Abstract Method Declaration

Must contain the method name, parameters, and return type but no body.

25
New cards

Inheritance in Abstract Classes

An abstract class that extends another abstract class will inherit all its abstract methods.

26
New cards

Concrete Implementation

The process whereby a concrete class fulfills all abstract method requirements.

27
New cards

Direct Instantiation

Not permitted for an abstract class or an interface.

28
New cards

Interface and Abstract Class Relationship

A class can extend an abstract class and implement an interface.

29
New cards

Overloading Methods in Interfaces

A class can implement interface methods that are overloaded successfully.

30
New cards

Class Cannot Extend Interface

Specified rule indicating an interface does not extend classes.

31
New cards

Abstract Method Properties

Must be accessible and cannot be final or private.

32
New cards

Interface Instantiation

Interfaces cannot be instantiated directly by any instance.

33
New cards

Keyword for Interface Definition

The interface keyword is used to declare an interface.

34
New cards

Method Accessibility in Subclasses

Overriding methods must be at least as accessible as parent class methods.

35
New cards

First Concrete Class Requirement

Must implement all inherited abstract methods from interfaces or abstract classes.

36
New cards

Relationship Between Interfaces

An interface can extend another interface but cannot extend a class.

37
New cards

Keywords Not Required for Interface

No need for public, static, and final in interface constant declarations.

38
New cards

Implementation of Interfaces Containing Same Method

Allowed, a class can implement multiple interfaces with the same method.

39
New cards

Abstract but Incomplete Interface

An interface can exist without any methods, though it is not required.

40
New cards

Interface Method Characteristics

All methods in interfaces are by default public and abstract unless specified otherwise.

41
New cards

Accessing Interface Methods

Methods are assumed to be public and can be overridden in implementing classes.

42
New cards

Extending Interfaces

An interface that extends another inherits all abstract methods.

43
New cards

Interface Definitions

Interfaces are explicitly defined using the interface keyword.