返回卡包市场

Unit 2: Using Objects

暂无描述。系统推荐的高质量记忆内容,适合每天坚持背诵学习。

卡片总数: 24内容版本: v4公开卡包更新时间: 8/1/2026

卡片预览 (24 张)

#1
正面 (问题)

abs(int a)

背面 (解答)

A function used to find and return the absolute value (magnitude) of an integer. It disregards any negative sign attached to it and always gives back its positive equivalent.

#2
正面 (问题)

Abstraction

背面 (解答)

The process of simplifying complex systems by focusing on essential features while hiding unnecessary details. It allows programmers to work with high-level concepts without worrying about implementation specifics.

#3
正面 (问题)

Assignment operator

背面 (解答)

Used to assign a value to a variable. It is represented by the equals sign (=) and it assigns the value on the right side of the equals sign to the variable on the left side.

#4
正面 (问题)

Classes

背面 (解答)

User-defined data types in object-oriented programming. They serve as blueprints for creating objects by defining their attributes and methods.

#5
正面 (问题)

Constructor

背面 (解答)

A special method within a class that is used to initialize objects of that class. It is called automatically when an object is created and helps set initial values for its attributes.

#6
正面 (问题)

Encapsulation

背面 (解答)

Refers to the bundling of data and methods within a class, where the data is hidden from external access. It ensures that an object’s internal state remains consistent by controlling how it can be accessed or modified.

#7
正面 (问题)

IllegalArgumentException

背面 (解答)

An exception that occurs when a method receives an argument that is inappropriate or invalid for its intended purpose. It usually indicates that there was an error in how arguments were passed into a method.

#8
正面 (问题)

indexOf(String str)

背面 (解答)

A method used to find the index position of the first occurrence of a specified substring within a larger string.

#9
正面 (问题)

Inheritance

背面 (解答)

A concept in object-oriented programming where a class inherits the properties and behaviors of another class. It allows for code reuse and promotes the creation of hierarchical relationships between classes.

#10
正面 (问题)

Return type (void)

背面 (解答)

In programming refers to the data type of the value that a method or function returns. In the case of “void,” it means that the method does not return any value.

#11
正面 (问题)

length()

背面 (解答)

A method used to find the number of characters in a string.

#12
正面 (问题)

Math class

背面 (解答)

A class in Java that provides various mathematical operations and functions that can be performed on numeric data types. It includes methods for basic arithmetic operations, trigonometry, logarithms, random numbers generation, etc.

#13
正面 (问题)

Math.PI

背面 (解答)

A constant in the Math object of JavaScript that represents the ratio of the circumference of a circle to its diameter. It is approximately equal to 3.14159.

#14
正面 (问题)

Methods

背面 (解答)

Functions defined within a class that perform specific tasks or actions when called upon by an object. They can manipulate data, interact with other objects, or return values.

#15
正面 (问题)

Null keyword

背面 (解答)

A special value in programming that represents the absence of a value. It is often used to indicate that a variable does not currently have any assigned value.

#16
正面 (问题)

Object-oriented programming (OOP)

背面 (解答)

A programming paradigm that organizes code into objects, which are instances of classes. It emphasizes the use of objects to represent real-world entities and their interactions.

#17
正面 (问题)

Objects

背面 (解答)

Instances of a class that represent real-world entities or concepts. They encapsulate data (attributes) and behavior (methods) into a single entity.

#18
正面 (问题)

Overloading constructors

背面 (解答)

Refers to the ability to have multiple constructors in a class, each with a different set of parameters. This allows objects to be created with different initial states or configurations.

#19
正面 (问题)

Parameters

背面 (解答)

Variables declared in a method or function that receive values when the method is called. They allow data to be passed into a method, enabling it to perform actions or calculations based on those values.

#20
正面 (问题)

Polymorphism

背面 (解答)

Refers to the ability of objects to take on multiple forms or have multiple types. In programming, it allows different objects to be treated as instances of a common superclass, enabling flexibility and extensibility.

#21
正面 (问题)

pow(double a, double b)

背面 (解答)

A function that is used to raise a number (a) to the power of another number (b). It returns the result of a raised to the power of b.

#22
正面 (问题)

Primitive data types

背面 (解答)

Basic data types that are built into a programming language and represent simple values. They include integers, floating-point numbers, characters, booleans, and more.

#23
正面 (问题)

random()

背面 (解答)

A function that generates and returns a pseudo-random decimal value between 0.0 (inclusive) and 1.0 (exclusive).

#24
正面 (问题)

Reference types

背面 (解答)

Data types in programming that store references or memory addresses rather than the actual values themselves. They include objects, arrays, and strings, and allow for dynamic memory allocation and manipulation.