• Home
  • Free Trial
  • Sign In
  • Techdegree
  • Tracks
  • Content Library
  • Community
  • Support
  • Jobs
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • 21st Century Skills
      • • Android
      • • APIs
      • • Business
      • • C#
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Equity, Diversity, and Inclusion (EDI)
      • • Go
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • PHP
      • • Python
      • • Quality Assurance
      • • Ruby
      • • Security
  • Petrov von Petrov
    Petrov von Petrov
    21,916 Points

    Is there really a need for the second constructor?

    Posted April 22, 2016 3:47pm by Petrov von Petrov
    Petrov von Petrov
    21,916 Points
    • PHP
    • Object-Oriented PHP Basics (Retired)
    • Inheritance, Interfaces, and Exceptions
    • Object Inheritance

    0 Answers

  • James Barrett
    James Barrett
    13,253 Points

    Why will this not work?

    Posted March 18, 2016 12:00pm by James Barrett
    James Barrett
    13,253 Points
    • PHP
    • Object-Oriented PHP Basics (Retired)
    • Inheritance, Interfaces, and Exceptions
    • Object Inheritance

    1 Answer

  • ammarkhan
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    ammarkhan
    Front End Web Development Techdegree Student 21,661 Points

    How did getInfo(); printed flavor?

    Posted November 8, 2015 9:24pm by ammarkhan
    .a{fill-rule:evenodd;}techdegree
    ammarkhan
    Front End Web Development Techdegree Student 21,661 Points
    • PHP
    • Object-Oriented PHP Basics (Retired)
    • Inheritance, Interfaces, and Exceptions
    • Object Inheritance

    1 Answer

  • Jorge Gonzalez
    Jorge Gonzalez
    3,574 Points

    Another code error.

    Posted July 24, 2015 1:24am by Jorge Gonzalez
    Jorge Gonzalez
    3,574 Points
    • PHP
    • Object-Oriented PHP Basics (Retired)
    • Inheritance, Interfaces, and Exceptions
    • Object Inheritance

    1 Answer

  • Mohamed Roshdy
    Mohamed Roshdy
    2,437 Points

    i have code error

    Posted July 22, 2015 5:22pm by Mohamed Roshdy
    Mohamed Roshdy
    2,437 Points
    • PHP
    • Object-Oriented PHP Basics (Retired)
    • Inheritance, Interfaces, and Exceptions
    • Object Inheritance

    1 Answer

  • Julian Cortes
    Julian Cortes
    3,549 Points

    Hi, im using MAMP php 5.6.2, when I try to load echo de info of the object soda is showing nothing in my browser

    Posted March 27, 2015 4:10pm by Julian Cortes
    Julian Cortes
    3,549 Points
    • PHP
    • Object-Oriented PHP Basics (Retired)
    • Inheritance, Interfaces, and Exceptions
    • Object Inheritance

    2 Answers

  • piotr nowik
    PLUS
    piotr nowik
    Courses Plus Student 560 Points

    Hi there. Is it possible to do the "parent" extension in the Soda class on the getInfo() function as on __construction?

    Posted February 28, 2015 4:41pm by piotr nowik
    piotr nowik
    Courses Plus Student 560 Points
    • PHP
    • Object-Oriented PHP Basics (Retired)
    • Inheritance, Interfaces, and Exceptions
    • Object Inheritance

    2 Answers

  • carlosjimenez
    carlosjimenez
    5,504 Points

    Why do we have default values for class properties?

    Posted January 5, 2015 4:34am by carlosjimenez
    carlosjimenez
    5,504 Points
    • PHP
    • Object-Oriented PHP Basics (Retired)
    • Inheritance, Interfaces, and Exceptions
    • Object Inheritance

    2 Answers

  • John MacDonald
    John MacDonald
    8,508 Points

    I don't really understand the Parent::__construct($name, $price, $desc) Part

    Posted July 10, 2014 11:50pm by John MacDonald
    John MacDonald
    8,508 Points
    • PHP
    • Object-Oriented PHP Basics (Retired)
    • Inheritance, Interfaces, and Exceptions
    • Object Inheritance

    5 Answers

  • Adam Zuckerberg
    Adam Zuckerberg
    22,248 Points

    How to remove the play bar - it blocks the code and i have no idea what he is teaching????

    Posted July 9, 2014 7:20pm by Adam Zuckerberg
    Adam Zuckerberg
    22,248 Points
    • PHP
    • Object-Oriented PHP Basics (Retired)
    • Inheritance, Interfaces, and Exceptions
    • Object Inheritance

    3 Answers

  • Drew Butcher
    Drew Butcher
    33,160 Points

    Default values not appearing

    Posted May 15, 2014 10:05pm by Drew Butcher
    Drew Butcher
    33,160 Points
    • PHP
    • Object-Oriented PHP Basics (Retired)
    • Inheritance, Interfaces, and Exceptions
    • Object Inheritance

    3 Answers

  • Paul Mather
    Paul Mather
    3,313 Points

    Code not returning string

    Posted March 19, 2014 11:28pm by Paul Mather
    Paul Mather
    3,313 Points
    • PHP
    • Object-Oriented PHP Basics (Retired)
    • Inheritance, Interfaces, and Exceptions
    • Object Inheritance

    2 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Perks
  • Treehouse for Libraries
  • Treehouse for Teams
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2022 Treehouse Island, Inc.