21 April 2016

What do you mean by Object-Oriented Programming ?


  • Object-oriented programming (OOP) is a programming paradigm based on the concept of objects which may contain data and code what will operate on the data. 
  • Object refers to a particular instance of a class where the object can be a combination of variables, functions, and data structures. 
    Object-Oriented Programming (oop)
  • In OOP the variable declared inside a Class (self defined data type like int, char, float etc is primitive type ) is called Data & the function declared inside a Class is called method. 
  • Object-oriented programming took the best ideas of structured programming and combined them with several new concepts. It is a different way of organizing a program. 
    Objects of Object-Oriented Programming
  • Example: In reality everything is object of its class like CAR is an object of CAR class. Any person is an object of Human Class, Mango is an object of Fruit class, Rose is an object of Flower class etc.
PHP Advanced and Object-Oriented Programming: Visual QuickPro Guide (3rd Edition) (Visual QuickPro Guides)

No comments:

Post a Comment

Featured Post

How to Write PHP code and HTML code within a same file

A PHP file can have both PHP code and HTML code together. Any HTML code written outside of PHP <?php //php code here… ?> Code is ig...

Popular Posts