Ruby Objects and Classes
Treehouse
Course Summary
Ruby is known as an "Object Oriented" programming language. But was does object oriented mean? In this course, we'll cover the basics of Ruby Classes. We'll learn what classes are, how they are used, and how to write our own.
-
+
Course Description
Ruby is known as an "Object Oriented" programming language. But was does object oriented mean? In this course, we'll cover the basics of Ruby Classes. We'll learn what classes are, how they are used, and how to write our own.
Topics covered
- Ruby Objects and Classes
Objects and Classes are the blueprints and building blocks of the Ruby language. In this stage, we'll learn what classes are, where objects come from, and write our own class.- Variables and Methods
Classes and objects become much more useful when we keep our program's logic in them. In this stage, we'll learn how to use variables in our classes and where variables can and can't be used. We'll also learn to write methods in our classes, which make them more robust.- Build a Bank Account Class
Using our knowledge of writing classes, we're going to create a simple bank account class. The class will keep track of whom it belongs to as well as the account's transactions and its ongoing balance.
-
+
Course Syllabus
â— Ruby Objects and Classesâ—¦ Ruby Classesâ—¦ Instantiationâ—¦ Ruby Objectsâ—¦ Creating a Classâ— Variables and Methodsâ—¦ Variablesâ—¦ Attribute Readersâ—¦ Attribute Writers and Accessorsâ—¦ Methodsâ—¦ Instance Variables and Local Variablesâ—¦ The to_s methodâ— Build a Bank Account Classâ—¦ Part 1: Create the Classâ—¦ Part 2: Transactions, credits, and debitsâ—¦ Part 3: Keeping Our Balanceâ—¦ Part 4: Printing the register
This course is listed under
Open Source
and Development & Implementations
Community
Related Posts: