What are Classes?

I’m just going to jot down my notes while I learn about the nitty-gritty. Here we go.

Object-oriented languages use classes to describe objects.

An instance is an object created from a class. A case or an occurrence of a class, a copy/an example to put forth.

An Attribute are values that will persist inside a variable or instance variable (@variable)

The class method .new is a new instance of a class

def self.method.name
end

class Attibutes @@variable works without a method variable.

Inheritance extends methods and attributes of a class to another.

Enumerable is a ‘mix-in’ that is searchable, countable, sortable, collectible and yields members of a collection – a part of the ‘each’ method.

Symbols references method names and are unique.

Scope – global variables are available everywhere and local variables are available inside methods or classes “class variables” or instance variables.

@ belongs to instance variables @@belongs to a class variable.

Lisa

I’m a designer with a creative, empathic, and technical edge. I revel in crafting thoughtful experiences and visually compelling communication. As a designer and UX developer, I’m comfortable working hands-on and strategically with diverse teams. I want to help guide teams to learn effective ways to create meaningful products and features that delight the people and meet the needs of the market.