16 . private afairs


#1

got stuck again

lass Application
attr_accessor :status
def initialize; end
# Add your method here!
public
def print_status
puts "All systems go!"

private
def private_password
puts 12345; end

console:(ruby):11: syntax error, unexpected $end, expecting keyword_end


#2

Anything different in this code compared to you'rs? :wink:
It's a simple matter of re-reading you'r code and looking for mistakes, good luck!

class Application
attr_accessor :status
def initialize; end

Add your method here!

public
def print_status
puts "All systems go!"
end
end
private
def password
returns 12345
end


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.