💎 LearnRuby
Lessons Leaderboard
EN RU
Sign In Sign Up
Lessons Leaderboard
Language: EN RU
Sign In Sign Up
Lessons / Classes and Objects
Module 3 Intermediate Ruby 3.4

Classes and Objects

Ruby 3.4

Learn to create classes, define methods, and work with objects.

Exercise (3)

â—‹
1.

Dog Class

Create a simple Dog class with a name attribute.

15 points classes initialize
â—‹
2.

Counter Class

Create a Counter class with increment and decrement methods.

20 points classes state
â—‹
3.

Rectangle Class

Create a Rectangle class with area and perimeter calculations.

20 points classes calculations

Lesson Info

Beginner
Intermediate
Exercise
3
Total Points
55
Ruby Version
3.4
Sign in to start
Back to all lessons

LearnRuby - Learn Ruby 3.4 with interactive exercises