- 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.
- 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.
- 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.
21 April 2016
What do you mean by Object-Oriented Programming ?
Subscribe to:
Post Comments (Atom)
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
-
Problem: PHP Startup: Unable to load dynamic library 'C:\\php7\\ext\\php_curl.dll' - The operating system cannot run %1.\r\...
-
When a Java program source is compiled, the output of the Java compiler is called bytecode. Many language generate executable code ...
-
joomla login The solution steps are given bellow: Step1: connect your Joomla database with any database tools like phpMy...
No comments:
Post a Comment