πŸ€‘ Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! πŸš€ New videos dropping every weekβ€”start learning today!

🌟 Dreaming of a bright future? πŸŽ“ Ask about the Treehouse Scholarship program! πŸš€

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Community Projects
    • Live Sessions
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Community Projects Live Sessions Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
  • Petrov von Petrov
    Petrov von Petrov
    21,916 Points

    Confused about why you should use static properties/methods? See if this helps.

    Posted April 22, 2016 11:44pm by Petrov von Petrov
    Petrov von Petrov
    21,916 Points
    • PHP
    • Object-Oriented PHP Basics (Retired)
    • Inheritance, Interfaces, and Exceptions
    • Static Methods and Properties

    0 Answers

  • calvindiguidig
    PLUS
    calvindiguidig
    Courses Plus Student 4,388 Points

    static access :: and arrow -> operator

    Posted March 24, 2016 7:33pm by calvindiguidig
    calvindiguidig
    Courses Plus Student 4,388 Points
    • PHP
    • Object-Oriented PHP Basics (Retired)
    • Inheritance, Interfaces, and Exceptions
    • Static Methods and Properties

    1 Answer

  • Shafeeq Ahmed
    Shafeeq Ahmed
    6,058 Points

    The use of static properties in real world

    Posted March 1, 2016 9:55pm by Shafeeq Ahmed
    Shafeeq Ahmed
    6,058 Points
    • PHP
    • Object-Oriented PHP Basics (Retired)
    • Inheritance, Interfaces, and Exceptions
    • Static Methods and Properties

    1 Answer

  • Seth Warner
    Seth Warner
    5,348 Points

    What if I wanted to call getinfo and getmaker, another words I just wanted all the information, do you type it different

    Posted October 1, 2015 1:08am by Seth Warner
    Seth Warner
    5,348 Points
    • PHP
    • Object-Oriented PHP Basics (Retired)
    • Inheritance, Interfaces, and Exceptions
    • Static Methods and Properties

    0 Answers

  • Marco Boretto
    Marco Boretto
    29,821 Points

    self:: keyword doesn't work with sublime text 2

    Posted August 7, 2015 12:16pm by Marco Boretto
    Marco Boretto
    29,821 Points
    • PHP
    • Object-Oriented PHP Basics (Retired)
    • Inheritance, Interfaces, and Exceptions
    • Static Methods and Properties

    2 Answers

  • Ilya Fedoseev
    Ilya Fedoseev
    6,203 Points

    i have the problem in the code , but i do not see it

    Posted July 13, 2015 5:00pm by Ilya Fedoseev
    Ilya Fedoseev
    6,203 Points
    • PHP
    • Object-Oriented PHP Basics (Retired)
    • Inheritance, Interfaces, and Exceptions
    • Static Methods and Properties

    1 Answer

  • Oscar Mauricio Lancheros Murillo
    Oscar Mauricio Lancheros Murillo
    3,608 Points

    Why donΒ΄t we have workspaces on php course of OOP...?

    Posted June 29, 2015 10:45pm by Oscar Mauricio Lancheros Murillo
    Oscar Mauricio Lancheros Murillo
    3,608 Points
    • PHP
    • Object-Oriented PHP Basics (Retired)
    • Inheritance, Interfaces, and Exceptions
    • Static Methods and Properties

    4 Answers

  • Gregg Squire
    Gregg Squire
    14,829 Points

    If you are using a static property, why would you create a shirt object and then "echo $shirt::$manufacturer;"?

    Posted March 29, 2015 12:58am by Gregg Squire
    Gregg Squire
    14,829 Points
    • PHP
    • Object-Oriented PHP Basics (Retired)
    • Inheritance, Interfaces, and Exceptions
    • Static Methods and Properties

    4 Answers

  • Henrique Zafniksi
    Henrique Zafniksi
    8,560 Points

    Scope Resolution Operator (paamayim nekudotayim), in object context?

    Posted November 18, 2014 6:15pm by Henrique Zafniksi
    Henrique Zafniksi
    8,560 Points
    • PHP
    • Object-Oriented PHP Basics (Retired)
    • Inheritance, Interfaces, and Exceptions
    • Static Methods and Properties

    2 Answers

  • Henrique Zafniksi
    Henrique Zafniksi
    8,560 Points

    Usability of a static property/method?

    Posted November 14, 2014 2:45pm by Henrique Zafniksi
    Henrique Zafniksi
    8,560 Points
    • PHP
    • Object-Oriented PHP Basics (Retired)
    • Inheritance, Interfaces, and Exceptions
    • Static Methods and Properties

    1 Answer

  • Ben Whitehead
    Ben Whitehead
    5,033 Points

    What's the point of static??

    Posted July 21, 2014 6:45pm by Ben Whitehead
    Ben Whitehead
    5,033 Points
    • PHP
    • Object-Oriented PHP Basics (Retired)
    • Inheritance, Interfaces, and Exceptions
    • Static Methods and Properties

    5 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

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.