Section 1

Preview this deck

Inheritance

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

7 years ago

Date created

Mar 1, 2020

Cards (27)

Section 1

(27 cards)

Inheritance

Front

(OOP Concept) Used to establish class hierarchy. A 'subclass' inherits methods and behaviors from a 'superclass'; it can also declare new fields and methods as well as 'override' superclass methods.

Back

+ (in RegEx)

Front

When appended to a character or character class, it means 'one or more instances of the previous character'

Back

RegEx (Regular Expressions)

Front

Adds a level of abstraction to strings that makes it easier to search and manipulate text. A means of describing a set of strings using a subset of common characteristics.

Back

Object

Front

An instance of a class.

Back

^ (in RegEx)

Front

When included before a character class, it is referring to the matching of the first character; however, if it is the first character inside a bracketed character class, it means negation/not. Ex: ^[a].+ or ^a+ matches any consecutive sequence of 2 or more characters starting with the letter a. ^[^a].+ matches any consecutive sequence of 2 or more characters not starting with a.

Back

void (keyword)

Front

Declares that a method does not return any value.

Back

public (keyword)

Front

Indicates class, method, or field can be accessed by any class.

Back

interface (keyword)

Front

Used to declare a special type of class that only contains abstract or default methods, constant (static final) fields and static interfaces. Can later be implemented by classes, used to easily achieve multiple inheritance in java.

Back

Abstract Class

Front

A class that only exists in a model so subclasses can inherit from it. It cannot be instantiated; it can only be accessed through its subclass that extends it.

Back

Instance Variables

Front

Data members (methods & variables) that constitute a class.

Back

private (keyword)

Front

An access modifier that only allows access to that member from the class in which it resides.

Back

. (in RegEx)

Front

Will match any character; it does not have to be a letter.

Back

? (in RegEx)

Front

When appended to a character or character class, it means 'the previous character can appear one to zero times' (basically, it is optional)

Back

Class

Front

Defines the nature of an object. It is the blueprint in which an object is created. It is a logical abstraction i.e. there is no physical representation until an object is created.

Back

* (in RegEx)

Front

When appended to a character or character class, it means 'zero or more instances of the previous character'

Back

protected (keyword)

Front

Limits the access of a class member to only those classes which reside within the same class, subclass, or package.

Back

extends (keyword)

Front

The keyword used to create new classes or interfaces that extend existing super classes or super interfaces. Inherits the super class variables and methods.

Back

$ (in RegEx)

Front

When appended to a character or character class, it means 'ends with the previous character' Ex: .+a$ will match a sequence of 2 or more characters ending in a.

Back

finally (keyword)

Front

Used in a try/catch block to ensure that a segment of code is always executed

Back

super (keyword)

Front

Used to pass data from the subclass into the superclass through the superclass's constructor. Allows a subclass to access overridden methods and hidden members of its superclass.

Back

static (keyword)

Front

Is used to declare members that do not belong to individual objects but to a class itself, meaning that a class or variable can be called without creating an instance of an object.

Back

Abstraction

Front

(OOP Concept) In essence, it is the separation between what a class does and how it is accomplished. Ex: Buying a snack from a snack machine and having it dispense to you. The only thing that matters if what the machine does, you can easily buy another snack on another number without understanding the internal designs of the machine.

Back

Subclass

Front

Defined by using the 'extends' keyword. It inherits methods and behaviors from its 'superclass'. Also referred to as derived class, extended class, or child class.

Back

this (keyword)

Front

Used to represent an instance of the class in which it appears. Can also be used to forward a call from one constructor in a class to another constructor in the same class.

Back

@Override

Front

A Java annotation used to indicate that a method is intended to override an inherited method. Used within a subclass to override a superclass method.

Back

final (keyword)

Front

Used to denote a variable whose value is constant - can also be used in method declaration to assert that the method cannot be overridden by subclasses

Back

implements (keyword)

Front

Used to implement an interface. An interface is a skeleton of methods that a class should include.

Back