COMP 3520: Object-Oriented Programming in Ruby

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

1/20

flashcard set

Earn XP

Description and Tags

Flashcards covering the key concepts in Object-Oriented Programming and the Ruby programming language as discussed in the COMP 3520 lecture.

Last updated 1:44 AM on 10/23/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

21 Terms

1
New cards

Object-Oriented Programming (OOP)

A programming paradigm based on the concept of objects that can contain data and code.

2
New cards

Ruby

A pure object-oriented programming language created in 1993 by Yukihiro Matsumoto.

3
New cards

Scripting Languages

Languages used for writing scripts that automate tasks; examples include Perl, Python, and Smalltalk.

4
New cards

Dynamic Typing

A feature of Ruby where variables can hold values of different types without declaring a specific type.

5
New cards

Getters and Setters

Methods in Ruby for accessing and modifying instance variables.

6
New cards

Inheritance

A mechanism in OOP where a new class can inherit properties and methods from an existing class.

7
New cards

Polymorphism

The ability to present the same interface for different data types in OOP.

8
New cards

Syntax

The set of rules that defines the structure of statements in a programming language.

9
New cards

Containers in Ruby

General classes like arrays and hashes used to store collections of data.

10
New cards

Array

An ordered collection of values indexed by position, starting from 0.

11
New cards

Hash

A collection of key-value pairs, also known as associative arrays or dictionaries.

12
New cards

Blocks

A sequence of statements in Ruby that can take parameters and be executed within the context of a method.

13
New cards

Access Control

Mechanisms in OOP that restrict access to class members, used to enforce encapsulation.

14
New cards

Instance Variable

A variable that is accessible only within the instance of a class, usually prefixed with '@'.

15
New cards

Class Variable

A variable shared among instances of a class, prefixed with '@@'.

16
New cards

Global Variable

A variable accessible from anywhere in the program, prefixed with '$'.

17
New cards

Nil

A special object in Ruby representing 'nothing'; an instance of class NilClass.

18
New cards

Message Passing

The process of invoking methods and exchanging data between objects in OOP.

19
New cards

Dynamic Binding

The process of method resolution at runtime based on the object's actual class.

20
New cards

Accessor/Mutator Methods

Methods defined in a class to get and set the values of instance variables.

21
New cards

Ruby Community

The community of developers and users who utilize and contribute to the Ruby programming language.

Explore top flashcards

G6 U2
Updated 479d ago
flashcards Flashcards (31)
Romantyzm
Updated 1173d ago
flashcards Flashcards (45)
Fenne's frans
Updated 1180d ago
flashcards Flashcards (765)
1017
Updated 393d ago
flashcards Flashcards (55)
G6 U2
Updated 479d ago
flashcards Flashcards (31)
Romantyzm
Updated 1173d ago
flashcards Flashcards (45)
Fenne's frans
Updated 1180d ago
flashcards Flashcards (765)
1017
Updated 393d ago
flashcards Flashcards (55)