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
 

Object Oriented Programming Overview

By Exforsys | on September 13, 2006 |
OOPS

Object Oriented Programming Overview

If you are not familiar with an object-oriented programming language, you will first need to understand the foundation that makes up this paradigm. It is a necessity for anyone who plans on writing code. In this article, I will explain the basic OOP structures in detail.

The first thing that you will want to become familiar with is an object. An object is a bundle of software that contains methods and variables. The objects which are found in computer programs will often be used to simulate objects which exist in the real world. To truly understand OOP, it is crucial that you understand the importance of objects. Before I discuss objects in the OPP sense, look around you. It is likely that you see a number of objects, and this could include your desk, computer, or chair.

There are two things that all objects are composed of, and these are "behavior" and "state." As an example, cats have a state, and these states are color, breed, or name. They will also have behavior and one example of this could be purring. Even non-living objects have a state. The state of a bike could be the number of gears or the current gear. The behavior of a bike could be changing gears or braking. As you can see, both living and non-living objects will have both behavior and state. These objects include software programs. Objects that exist within software are based on objects which exist in reality. They will have behaviors and states.

An object that exists in software may hold its state in more than one variable. A variable can be defined as information that has been identified and given a name. The object will use its methods and behaviors. A method is an action that is carried out by the object. It may also be called a function, and is always connected with the object. So, as you can see, an object is a piece of software that is composed of both methods and variables. Objects that exist in software can be used to represent objects which exist in the real world. For example, if you are creating a motorcycle within a computer animation program, you will want it to behave like its real world counterpart.

Not only can you use objects to model things which exist in reality, but you can also use them to represent things which are more abstract. An "event" is a standard object that is used to demonstrate the motion of a user pressing on their mouse or keyboard. Everything that exists within the object is aware of its state, and can perform behaviors based on the methods and variables. For example, an object that would model a real world motorcycle would have variables which are related to the state of the vehicle. Some of these variables include speed, current gear, and pedal cadence. In object oriented programming terminology, this is called an instance variable. The reason for this is because it has information related to the state of the motorcycle.

Not only must the motorcycle have variables, but it will also need to have methods. An example of methods would be brakes or engine changes. The speed of the motorcycle is not a methods because it is merely a result of the engine changes. The name for these specific methods are called instance methods. The reason for this is because they will alter the state of motorcycle instance. The variables will comprise the center of an object. Methods will surround the center and protect it from the other objects that may exist in the program. Protecting the variables within the center of an object by surrounding it with methods is called encapsulation.

This is the image that object oriented programmers will seek to create. Sometimes the object may reveal a few of its variables or hide a few of the methods.

Some languages such as Java will create access levels for the variables or methods. The access level will only allow certain classes or objects to access it. However, there are a couple of powerful advantages to encapsulating variables or methods. The first is information-hiding, and the second is modularity. Modularity allows the code within an object to exist without being attached to other objects, and information-hiding can allow the object to hide information that is not effected by other objects.

« « How To Encourage Members During Group Discussions
HR Interview – Qualities That HR Generally Look For In An Aspiring Candidate » »

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
  • What is Object Oriented Programming?

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

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

    September 4, 2006 - 0 Comment
  • A Object Oriented Programming Lesson For Beginners

    October 4, 2006 - 0 Comment
  • Object Oriented Programming Concepts

    September 4, 2006 - 0 Comment
  • The OOP Paradigm

    October 4, 2006 - 0 Comment
  • Object Oriented Programming As a Paradigm

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

    October 9, 2006 - 0 Comment
  • Object Oriented Programming Issues

    September 9, 2006 - 0 Comment
  • The Use of Access Specifiers In Object Oriented Programming

    October 9, 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
  • A Object Oriented Programming Lesson For Beginners

    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

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