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
 

Understanding The Message Concept In OOPs

By Exforsys | on September 19, 2006 |
OOPS

Understanding The Message Concept In OOPs

To understand object oriented programming, you will need to become familiar with messages. As the name implies, a message is a process in which software objects will communicate with one another. Because of this, having one object is not enough.

An object will work best when it is exists in a large application that is populated by other objects. When these objects interact with each other, programmers will be able to gain a high level of functionality, and the behavior of the system will be very complex. To give you an example of this, imagine that you have a motorcycle that is sitting in your garage. By itself, it is nothing but gears and metal. However, when you sit on it, turn it on, and begin riding it, both you and the motorcycle have created interaction.

The software objects that exist within a program must interact as well. They will do this by sending messages to each other. When object Z wants object R to initiate one of R’s methods, object Z will transmit a signal to object R. There is a possibility that object R will not have enough information to activate the method. For example, if you want your motorcycle to slow down, you will need to "communicate" with it by pressing down on the brakes. The data that is transferred with the message is called parameters. The messages that are sent between software objects are comprised of three things. The first is the object to which the message is being sent. The second is the name of the method that is being requested. The third is the parameters that must be used with the method.

The messages use parameters to make sure the information is precise. If the receiving object does not have enough information, it will not be able to properly carry out the method. The three parts that make up a message are enough for the receiving software object to carry out the requested method. There is no other information that is needed. There are two important advantages that messages have. First, the behavior of an object will be displayed through the methods it uses. Because of this, transferring messages will allow a large number of interactions to occur between objects. Second, the objects will not have to be in the same machine in order to send or receive messages. It is also not necessary for them to be in the same process.

Encapsulation plays an important role in object oriented programming. It can be defined as concealing decisions which are related to the design of a computer program. The information that will often be hidden are things that are likely to be altered. The purpose of encapsulation is to protect the other parts of the application from changing when one piece of information is changed. To conceal a design decision, a programmer will need to build a strong interface. This interface will cover the rest of the application from any changes that are made. In contemporary programming languages, the concept of encapsulation has been used in a number of different ways.

While some people choose to use encapsulation as a general term for hiding information, others use it in a manner which is much more specific. In object oriented programming, the software module may hide the data by encapsulating it within a module which showcases an interface. It will reduce the chances of a software being damaged during its development by transferring the dependency of the code into an interface which is secure. The elements will carry out operations on the interface so that if a change occurs, it is not necessary for the clients to change as well. In most cases, the information will be hidden by concealing the layout of the data. If the layout is altered, the change will be reduced to a small portion of the program.



Information hiding is important for splitting up software, hardware, or equipment into parts that are functional. A good example of this is a car. A car is a intricate device that is split into a number of modules. Each module will have an interface which hides the decisions which are related to design. This will allow car companies to offer a number of products while maintaining a car which is cost effective to build.

« « PHP Tutorials – Operators (Part I)
Understanding Classes Within Object Oriented Programming » »

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

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

    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