PHP OOP: Traits

What is Traits?

  • Code is shortened by using Traits.
  • One code is used everywhere just by writing the trait function.

Example :

Output:

Multi traits use example:

Output:

Tagged : / / / / / / / / / / / / / /

PHP OOP : Abstract Classes

Abstract Class :

  • when we create abstract class then we can not create object of that abstract class.
  • If we want to use abstract class then we only access with derived class .
  • Just abstract write before the class name.
  • when we create abstract class two condition occurs one is abstract method like :- abstract protected function name ( );
  • abstract means incomplete method we declare but not implement (code).
  • In derived class we have to implement of that abstract method.
Tagged : / / / / / / / / / / / /

PHP OOP : Overriding properties and Methods

Overriding Properties :

  • Same properties on both classes (base and derived class).

Overriding Methods :

  • Same name of method on both classes base or derived class.
Tagged : / / / / / / / / / / / / /

scmGalaxy – A SCM Build and Release Community

scmGalaxy is a community initiative based on Software configuration management that helps community members to optimize their software development process, Software Development Life Cycle optimization, Agile Methodologies and improve productivity across all aspects of Java development, including Build Scripts, Testing, Issue Tracking, Continuous Integration, Code Quality and more!

ScmGalaxy is networking and knowledge sharing platform for all tech geeks and SCM Engineers, Build and Release Engineers. scmGalaxy.com where software configuration management (SCM) professionals go for articles, Tutorials, interview tips for SCM Jobs, Build and Release Engineer jobs.

scmGalaxy community

scmGalaxy Jobs

scmGalaxy Forum

scmGalaxy Tutorials

scmGalaxy Blogs

scmGalaxy group

ScmGalaxy.com is dedicated to software configuration, build and Release management. This covers CVS, VSS (Visual Source Safe), Perforce, SVN(Subversion) MKS Integrity, ClearCase,TFS,CM Synergy, git, Github, Best Practices, AnthillPro, Apache Ant, Maven, Bamboo, Cruise Control and many more tools.

ScmGalaxy.com provides the best platform for…

  • Discussion forum for Configuration Management, Build Management and Release Management
  • Community to share knowledge and tutorial on software configuration management
  • SCM Tools Evaluations and research
  • Article Submissions on SCM
  • Tutorials for Configuration & Build Management
  • Tutorials for Release Management
  • Software Configuration Management Best Practice
  • Videos and Installation, Configuration information.
  • Presentation and PPT slide on different topics
  • Job Portal for Configuration Manager / Build Engineer.
Tagged : / / / / / / /