OOP Flashcards

1
Q

Abstract classes are classes that contain one or more abstract methods. An abstract method is a method that is declared, but contains no implementation. Abstract classes may not be instantiated, and require subclasses to provide implementations for the abstract methods.

A

abstract class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

package

A

A package is a namespace for organizing classes and interfaces in a logical manner. Placing your code into packages makes large software projects easier to manage. This section explains why this is useful, and introduces you to the Application Programming Interface (API) provided by the Java platform.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

polymorphism

A

allows you to implement multiple methods within the same class that use the same name but a different set of parameters.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Encapsulation

A

It describes the idea of bundling data and methods that work on that data within one unit, e.g., a class in Java.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Inheritance provides a powerful and natural mechanism for organizing and structuring your software. This section explains how classes inherit state and behavior from their superclasses, and explains how to derive one class from another using the simple syntax provided by the Java programming language.

A

inheritance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

A package is a namespace for organizing classes and interfaces in a logical manner. Placing your code into packages makes large software projects easier to manage. This section explains why this is useful, and introduces you to the Application Programming Interface (API) provided by the Java platform.

A

package

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

constructor

A

a special method that is used to initialize a newly created object and is called just after the memory is allocated for the object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

An Interface is 100% abstract class. An interface can’t be instantiated (cannot make its objects).

A

interface

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

allows you to implement multiple methods within the same class that use the same name but a different set of parameters.

A

polymorphism

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

interface

A

An interface is a contract between a class and the outside world. When a class implements an interface, it promises to provide the behavior published by that interface. This section defines a simple interface and explains the necessary changes for any class that implements it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

a programmer hides all but the relevant data about an object in order to reduce complexity and increase efficiency.

A

abstraction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

interface

A

An Interface is 100% abstract class. An interface can’t be instantiated (cannot make its objects).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

A class is a blueprint or prototype from which objects are created. This section defines a class that models the state and behavior of a real-world object. It intentionally focuses on the basics, showing how even a simple class can cleanly model state and behavior.

A

class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

It describes the idea of bundling data and methods that work on that data within one unit, e.g., a class in Java.

A

Encapsulation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Inheritance

A

Inheritance provides a powerful and natural mechanism for organizing and structuring your software. This section explains how classes inherit state and behavior from their superclasses, and explains how to derive one class from another using the simple syntax provided by the Java programming language.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

abstraction

A

a programmer hides all but the relevant data about an object in order to reduce complexity and increase efficiency.

17
Q

object

A

An object is a software bundle of related state and behavior. Software objects are often used to model the real-world objects that you find in everyday life. This lesson explains how state and behavior are represented within an object, introduces the concept of data encapsulation, and explains the benefits of designing your software in this manner.

18
Q

a special method that is used to initialize a newly created object and is called just after the memory is allocated for the object.

A

constructor

19
Q

abstract class

A

Abstract classes are classes that contain one or more abstract methods. An abstract method is a method that is declared, but contains no implementation. Abstract classes may not be instantiated, and require subclasses to provide implementations for the abstract methods.

20
Q

An interface is a contract between a class and the outside world. When a class implements an interface, it promises to provide the behavior published by that interface. This section defines a simple interface and explains the necessary changes for any class that implements it.

A

interface

21
Q

An object is a software bundle of related state and behavior. Software objects are often used to model the real-world objects that you find in everyday life. This lesson explains how state and behavior are represented within an object, introduces the concept of data encapsulation, and explains the benefits of designing your software in this manner.

A

object

22
Q

class

A

A class is a blueprint or prototype from which objects are created. This section defines a class that models the state and behavior of a real-world object. It intentionally focuses on the basics, showing how even a simple class can cleanly model state and behavior.