Skip to content

panda challenge with struct #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

timsvoice
Copy link

Hi Jesse,

So I have achieved the output for the Panda challenge BUT I am using struct and have some questions:

  1. can you treat a struct as you would a class. Is my method appropriate?
  2. in order to move forward with the tiger challenge, I will need the struct to inherit from the "vehicle" class. Is this possible?

@jwo
Copy link
Member

jwo commented May 13, 2014

In this episode, let's not use a struct, and instead use a class instead.

so it should be

class Automobile < Vehicle
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants