• Home
  • Free Trial
  • Sign In
  • Techdegree
  • Tracks
  • 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
  • Michael Cook
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Michael Cook
    Full Stack JavaScript Techdegree Graduate 28,960 Points

    Clarification needed: why create a separate class with a static method for displaying the recipe?

    Posted May 23, 2019 1:57am by Michael Cook
    .a{fill-rule:evenodd;}techdegree seal-36
    Michael Cook
    Full Stack JavaScript Techdegree Graduate 28,960 Points
    • PHP
    • Object-Oriented PHP Basics
    • Building the Recipe
    • Static Methods

    1 Answer

  • John Silverstein
    John Silverstein
    6,290 Points

    Why dont we use a constructor inside the class?

    Posted August 24, 2017 5:40pm by John Silverstein
    John Silverstein
    6,290 Points
    • PHP
    • Object-Oriented PHP Basics
    • Building the Recipe
    • Static Methods

    0 Answers

  • jlampstack
    jlampstack
    23,917 Points

    Why do we need the STATIC keyword?

    Posted March 18, 2017 9:32pm by jlampstack
    jlampstack
    23,917 Points
    • PHP
    • Object-Oriented PHP Basics
    • Building the Recipe
    • Static Methods

    1 Answer

  • Alex Flores
    Alex Flores
    7,864 Points

    How is she calling a method from another class inside the Render class?

    Posted February 27, 2017 3:37pm by Alex Flores
    Alex Flores
    7,864 Points
    • PHP
    • Object-Oriented PHP Basics
    • Building the Recipe
    • Static Methods

    1 Answer

  • Jonathan Grieve
    MOD
    Jonathan Grieve
    Treehouse Moderator 90,704 Points

    How to render the static display method? [SOLVED]

    Posted September 9, 2016 10:41pm by Jonathan Grieve
    Jonathan Grieve
    Treehouse Moderator 90,704 Points
    • PHP
    • Object-Oriented PHP Basics
    • Building the Recipe
    • Static Methods

    0 Answers

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

    Why do we pass object in static class as a args.

    Posted August 16, 2016 8:57pm by ammarkhan
    .a{fill-rule:evenodd;}techdegree
    ammarkhan
    Front End Web Development Techdegree Student 21,661 Points
    • PHP
    • Object-Oriented PHP Basics
    • Building the Recipe
    • Static Methods

    0 Answers

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

    Why did $recipe replaced $this?

    Posted July 22, 2016 8:49pm by ammarkhan
    .a{fill-rule:evenodd;}techdegree
    ammarkhan
    Front End Web Development Techdegree Student 21,661 Points
    • PHP
    • Object-Oriented PHP Basics
    • Building the Recipe
    • Static Methods

    3 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

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

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.