PhP Classes and Objects Explained

Class: Class is a way to organize the data. For instance , you want to write a program to display  the names of parts of a car. What you can do is you can echo out all the part names of a car. So , now you want to display the part names of 10 cars . Now echoing out sounds little bitter, isnt it? here is where object oriented concepts comes in to play. To solve the problem, we use the class concept. here int this tutorial i have created a class called coder, which contains the coders details. So we create a class template called coder. Then we create many instances of the coder class to display the details of various other coders.

Class systax:

Object: Object is an instance of the class. class is like a template and we can create many copies of the class using the object.

Object Syntax:



This script simulates a dog moving to its kennel. It consists of all conditional statements except switch. Initially we…

Read more
Git Clone Error:

Issue: In Jenkins, when I am trying to clone a git repository I am getting the following…

Read more

In this tutorial am going to explain how to set up ruby on rails environment , create a rails application and test that…

Read more

The Best Tutorials & Tips to Speedup Your DevOps Workflow.

Created by Bibin Wilson.