Logo

Navigation
  • Home
  • Services
    • ERP Solutions
    • Implementation Solutions
    • Support and Maintenance Solutions
    • Custom Solutions
    • Upgrade Solutions
    • Training and Mentoring
    • Web Solutions
    • Production Support
    • Architecture Designing
    • Independent Validation and Testing Services
    • Infrastructure Management
  • Expertise
    • Microsoft Development Expertise
    • Mobile Development
    • SQL Server Database and BI
    • SAP BI, SAP Hana, SAP BO
    • Oracle and BI
    • Oracle RAC
  • Technical Training
    • Learn Data Management
      • Business Intelligence
      • Data Mining
      • Data Modeling
      • Data Warehousing
      • Disaster Recovery
    • Learn Concepts
      • Application Development
      • Client Server
      • Cloud Computing Tutorials
      • Cluster Computing
      • CRM Tutorial
      • EDI Tutorials
      • ERP Tutorials
      • NLP
      • OOPS
      • Concepts
      • SOA Tutorial
      • Supply Chain
      • Technology Trends
      • UML
      • Virtualization
      • Web 2.0
    • Learn Java
      • JavaScript Tutorial
      • JSP Tutorials
      • J2EE
    • Learn Microsoft
      • MSAS
      • ASP.NET
      • ASP.NET 2.0
      • C Sharp
      • MS Project Training
      • Silverlight
      • SQL Server 2005
      • VB.NET 2005
    • Learn Networking
      • Networking
      • Wireless
    • Learn Oracle
      • Oracle 10g
      • PL/SQL
      • Oracle 11g Tutorials
      • Oracle 9i
      • Oracle Apps
    • Learn Programming
      • Ajax Tutorial
      • C Language
      • C++ Tutorials
      • CSS Tutorial
      • CSS3 Tutorial
      • JavaScript Tutorial
      • jQuery Tutorial
      • MainFrame
      • PHP Tutorial
      • VBScript Tutorial
      • XML Tutorial
    • Learn Software Testing
      • Software Testing Types
      • SQA
      • Testing
  • Career Training
    • Career Improvement
      • Career Articles
      • Certification Articles
      • Conflict Management
      • Core Skills
      • Decision Making
      • Entrepreneurship
      • Goal Setting
      • Life Skills
      • Performance Development
      • Personal Excellence
      • Personality Development
      • Problem Solving
      • Relationship Management
      • Self Confidence
      • Self Supervision
      • Social Networking
      • Strategic Planning
      • Time Management
    • Education Help
      • Career Tracks
      • Essay Writing
      • Internship Tips
      • Online Education
      • Scholarships
      • Student Loans
    • Managerial Skills
      • Business Communication
      • Business Networking
      • Facilitator Skills
      • Managing Change
      • Marketing Management
      • Meeting Management
      • Process Management
      • Project Management
      • Project Management Life Cycle
      • Project Management Process
      • Project Risk Management
      • Relationship Management
      • Task Management
      • Team Building
      • Virtual Team Management
    • Essential Life Skills
      • Anger Management
      • Anxiety Management
      • Attitude Development
      • Coaching and Mentoring
      • Emotional Intelligence
      • Stress Management
      • Positive Thinking
    • Communication Skills
      • Conversation Skills
      • Cross Culture Competence
      • English Vocabulary
      • Listening Skills
      • Public Speaking Skills
      • Questioning Skills
    • Soft Skills
      • Assertive Skills
      • Influence Skills
      • Leadership Skills
      • Memory Skills
      • People Skills
      • Presentation Skills
    • Finding a Job
      • Etiquette Tips
      • Group Discussions
      • HR Interviews
      • Interview Notes
      • Job Search Tips
      • Resume Tips
      • Sample Resumes
 

A Object Oriented Programming Lesson For Beginners

By Exforsys | on October 4, 2006 |
OOPS

A Object Oriented Programming Lesson For Beginners

In this article I will go over object oriented programming in relation to PHP. This article will be especially useful to those who already have a simple knowledge of programming and variables. You should know what a variable is, and you should also know about the different types of variables.

When you read this information, it is important to remember that the terms used for other programming languages may be different. It is the overall concepts that you will want to pay close attention to. One of the most powerful aspects of OOP is that the code which is generated by a programmer can be reused and placed in bundles.

Code which can be reused is extremely important. The reason for this is because it will save the programmer both money and time. In addition to this, the code will be efficient. The bundles of code that can be reused can be utilized to create what is named an object. The object can be changed in a number of different ways, and it can also carry out various processes. Before you can construct an object, you will need to create a template which is related to the object. The proper name for this template is a class. In a programming language like PHP, the classes will be defined by the keyword named "class."

For example, if you decide to create a template for dogs, the class would be called dogs. You would want to design a template which will define the typical dog. There are a number of things a dog can do. The dog can bark, eat food, or wag its tail. In order for the dog to do these things, you will need to add a function, which may also be known as a method. Once you have added the functions, the dog will be able to perform some simple actions. In addition to functions or methods, you can also give an object properties. The property that will be given to the dog will be placed within the class. The properties of a dog could be its name, fur color, or build. There are two terms that you will want to become familiar with in object oriented programming, and these are initialization and instantiation.

Instantiation occurs when an object is generated within your code. It is important to keep in mind that templates and classes are the same thing. They are similar to diagrams. While the diagram of a home isn’t the actual home, it is the design that will be used to build the home. The instantiation process will occur when the house is actually built. Initialization will occur when you give a value to a variable for the first time. It is important for you to know the difference between instantiation and initialization. Once you have created variable within the template, you will next need to assign something to the dog object. If you don’t do this, you will have variables that are empty.

The variables will need to be initialized. You will assign values to the variables in your class with this keyword. If you are working with a function that has the same name as the class, you will need to construct an instance of the object. Once this has been done, the function may be called as soon as an instance of the object is created. The name of this type of function is a constructor. It is also possible for functions to take what is called parameters. These are values that are given to the function. The function will take these values and attach them to the variables.



Object oriented programming is a powerful paradigm that has changed the way computer applications are designed. Instead of a taking an approach that is subject oriented, OOP has taken an approach which is object oriented. A large number of modern languages are using this concept, and some of these include PHP, Java, Lisp, and Pascal. If you wish to become adept that using these programs, it is important for you to understand fundamental concepts that make up object oriented programming. Once you have done this, you will be able to master any OOP language.

« « The Role of a Lawyer
The OOP Paradigm » »

Author Description

Avatar

Editorial Team at Exforsys is a team of IT Consulting and Training team led by Chandra Vennapoosa.

Free Training

RSSSubscribe 385 Followers
  • Popular
  • Recent
  • Object Oriented Programming Overview

    September 13, 2006 - 0 Comment
  • OOPS Tutorials

    December 24, 2007 - 0 Comment
  • Understanding The Message Concept In OOPs

    September 19, 2006 - 0 Comment
  • Understanding Classes Within Object Oriented Programming

    September 19, 2006 - 0 Comment
  • The Inheritance Concept In OOPs

    September 23, 2006 - 0 Comment
  • Object Oriented Programming

    September 23, 2006 - 0 Comment
  • What is Object Oriented Programming?

    September 27, 2006 - 0 Comment
  • Object Oriented Programming Introduction

    September 4, 2006 - 0 Comment
  • Object Oriented Programming Lessons

    September 27, 2006 - 0 Comment
  • Object Oriented Programming Concepts

    September 4, 2006 - 0 Comment
  • OOPS Tutorials

    December 24, 2007 - 0 Comment
  • The Importance of Inheritance Within OOP

    October 13, 2006 - 0 Comment
  • The Use of Access Specifiers In Object Oriented Programming

    October 9, 2006 - 0 Comment
  • Class-based Object Oriented Programming

    October 9, 2006 - 0 Comment
  • The OOP Paradigm

    October 4, 2006 - 0 Comment
  • What is Object Oriented Programming?

    September 27, 2006 - 0 Comment
  • Object Oriented Programming Lessons

    September 27, 2006 - 0 Comment
  • The Inheritance Concept In OOPs

    September 23, 2006 - 0 Comment
  • Object Oriented Programming

    September 23, 2006 - 0 Comment
  • Understanding Classes Within Object Oriented Programming

    September 19, 2006 - 0 Comment

Exforsys e-Newsletter

ebook
 

Related Articles

  • OOPS Tutorials
  • The Importance of Inheritance Within OOP
  • The Use of Access Specifiers In Object Oriented Programming
  • Class-based Object Oriented Programming
  • The OOP Paradigm

Latest Articles

  • Project Management Techniques
  • Product Development Best Practices
  • Importance of Quality Data Management
  • How to Maximize Quality Assurance
  • Utilizing Effective Quality Assurance Strategies
  • Sitemap
  • Privacy Policy
  • DMCA
  • Trademark Information
  • Contact Us
© 2023. All Rights Reserved.IT Training and Consulting
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.AcceptReject Read More
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT