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:



Ruby on rails is a framework for developing web applications based on ruby programming language.  Ruby is not only…

Read more

1. If, else and ifelse:[crayon-5d5d0a0491268167238751/]2. Conditional statement using ternary…

Read more

How do I install latest ansible server on a Redhat or Centos 7 server? You can easily install the latest stable…

Read more

The Best Tutorials & Tips to Speedup Your DevOps Workflow.

Created by Bibin Wilson.