Exforsys.com
 
Home Tutorials OOPS
 

Object Oriented Programming Introduction

 

Object Oriented Programming Introduction

Object Oriented Programming, also known as OOP, is a computer science term which is used to describe a computer application that is composed of multiple objects which are connected to each other. Traditionally, most computer programming languages were simply a group of functions or instructions.




With OOP, every object can handle data, get messages, and transfer messages to other objects. The objects will all act as independent units in their own right, and they will be responsible for carrying out a certain process.

Because the objects are not dependent on each other, OOP is seen as being more flexible than older methods of programming. It has become quite popular, and it is now used in a number of advanced software engineering projects. Many programmers feel that object oriented programming is easier for beginners to learn than previous programming methods. Because it is easier to learn, it can also be analyzed and maintained without a large amount of difficulty. However, there are some people that feel that OOP is more complicated than older programming methods. To understand object oriented programming, there are a few concepts you will need to become familiar with.

The first concept that you will need to learn is called a "class." A class creates the attributes of a thing, and it will also define the processes that the thing can carry out. For example, a class called "cats" will have the attributes which are commonly found with cats, such as the ability to purr. A class will bring about modularity within the objected oriented computer application. Someone who is not a programmer should be able to find a class. The reason for this is because the attributes of the class should be something that will make sense to them. It is also important for the code of a class to be self contained to a certain degree. When code is written with relevant names, it will be easier to understand. Making sure the code is self-contained will allow one part of the application to be updated without needing to change the other parts.

It is this modularity that makes OOP an effective programming method. It will also help the application solve the problems that it was designed for. The next concept that you will want to become familiar with is an "object." An object can be defined as a specific instance of a class. As an example, while the class Cats will provide all the attributes that are found in all cats, the "object" named Betsy is a specific cat. While it shares the same attributes which are found in all cats, it has fur with a unique color. In object oriented programming, a programmer would say that the object Betsy is a run-time instance of the class Cats.

A class may also be devided into sub-groups. Certain variations of a class may not be a specific object. The class Cats may have a sub-group which consists of multiple cat breeds. For example, if Betsy were a Persian cat, it would be an instance of the Persian cat sub-group. Every object within an OOP language will share some attributes with the parent class, but it will also have unique attributes as well. The next concept that you will want to become familiar with is "method." A method may also be called a "message" and can be defined as the abilities of an object. Because Betsy is a cat, Betsy can purr. Because of this, "purr" is a method that Betsy has.




Betsy may have a number of other methods. When a method is used within an object oriented programming language, it will only affect a single object. This is true even if the method is designed for the entire class. While all cats can purr, you will only need one cat to do it. Methods can further be broken down into commands, callbacks, or queries. A query will tell you about the state of the object, and a command will cause that object to carry out a task. A callback is a method that is composed of a part within an object. The part will notify its parent that an event has taken place, and the object may need to react to the event.



Read Next: Object Oriented Programming Concepts



 

 

Comments


bogdan said:

  I am trying to learn c and until I found your website I was very confuse...good work....really good work!
Thank you!
September 13, 2006, 6:49 pm

gurpiyar singh said:

  i am trying to learm c and untill i find ur website i was very confusd .....good work....really good work! thank you
December 12, 2006, 12:12 am

sanjay lakhanpal said:

  It's really a very good article.Thanx
May 17, 2007, 11:27 pm

rvijay said:

  super step by step teaching
May 22, 2007, 4:14 am

sidhu said:

  the explination is gud
May 28, 2007, 12:07 am

Richagupta said:

  Hi, Ur site is awesome for an abosulte beginner and programmer too. You did great.
I was very releived after i found ur site.

pls keep doing this and Add more tutorials.

Thanks a ton
May 30, 2007, 4:13 am

sheelu said:

  It is the best site for learners. I am enjoying it.
June 8, 2007, 5:44 am

Guru MCA said:

  This type of Articles are better to understand, is Explained from basic,it will UnderStands Easily.

Thanks

GuruPrasad.Y
Bangalore
June 12, 2007, 8:39 am

sandeep kumar bs said:

  honestly speaking...before i read ur article i read many other sites where there was an expalination given....but no where as good as this...ur article tells how to understand things in a systematic way....i appreciate it gr8ly!!!
thanks alottt!!

cheers
sandeep
July 4, 2007, 11:30 pm

dhantu said:

  One of the best, 've ever read. Provide us a full application/project for practice. This would make us understand directory structure, linking of different tools, architecture of the project, etc.,
Finally, something on UML diagrams would be more beneficial.

Wonderful tutorial

July 26, 2007, 12:34 pm

Ashish Kapoor said:

  I am good I practicle but when it's come to theory or reasoning I am NULL.

Thanks to you to make me understand the concepts.
August 2, 2007, 6:19 am

Kapil Patel said:

  this is really good for me to understand
August 16, 2007, 10:42 am

abhish said:

  thanks it is very helpful for me
keeep going
god blesss u all
August 20, 2007, 12:09 am

Arvind jain said:

  I will say, its a great article i have ever read
August 22, 2007, 6:42 am

Ruchir H Andharia said:

  It is Interesting to read your Article but give more Example about Class and Object with Attributes so Understand more easily
August 27, 2007, 1:06 am

Minakshee said:

  My q is how to call the movie clip randomly???
i have 10 movie clip and i want to call them prequently?????
pls solve my problem...

thnaks..
Minakshee
September 8, 2007, 7:37 am

johnson raja said:

  Thank u for providing me an wonderful article regarding oops concept .
Now iam clear in all my doubts......................


Thanks
Johnson raja
October 25, 2007, 5:12 am

Gopz said:

  Its really good place to learn some basics and actually i dont know what is MVS and from ur site i leart lot from that.really good site and best of all

great
gopz
October 30, 2007, 4:57 am

Sijugeo said:

  Thanks for the wonderful article!!!
November 1, 2007, 8:57 am

sanjiv sudhakar said:

  It's very good article
November 23, 2007, 9:03 am

Suresh from Bangalore said:

  It is very very good. Because this site is explaining with details from the basics.
December 10, 2007, 12:06 am

Sushma Veeram said:

  WOW Simply Superb, I am a Computer Consultant since 6 Years in UK. I am really pleased with this tutorials. Please do it the same to encourage some more Programmers. Great help for many people.
Cheers
December 22, 2007, 11:59 pm

antojo said:

  very brilliant explanation for programing
May 6, 2008, 4:48 am

Varun Soni said:

  Thanks a lot before comong here i visited alot of sites but i was not properly able to understand the concept. But man you had explained it in very simple wordings .... gud work keep it up best of luck
July 11, 2008, 1:01 am

suvi said:

  ya .... very excellent developing for everything
September 5, 2008, 11:25 pm

santanu kumar panda said:

  very very better step of oop concept.
October 21, 2008, 2:01 pm

shravan said:

  Thanks for the wonderful article!!! this is very useful for every one
December 27, 2008, 4:55 am

shailendra singh said:

  Thanks for guiding beginers and i really got the basic concept about OOPS and now on that platform can start the trail of languages , thanks again.

Regards

Shaiendra Singh
January 27, 2009, 11:51 pm

Alexander said:

  I am a programmer, but still was not clear about the basic concepts of Object Oriented programming. It has given me a great understanding.
Keep going, All the best,
February 3, 2009, 9:09 pm

Post Your Comment:

Members Please Login
Your Name:*
e-mail ID:(required for notification)*
Image Verification: 
 
 Subscribe    

Sponsored Links

 

Subscribe via RSS


Get Daily Updates via Subscribe to Exforsys Free Training via email


Get Latest Free Training Updates delivered directly to your Inbox...

Enter your email address:


 

Subscribe to Exforsys Free Training via RSS
 

 
Partners -  Privacy and Legal Policy -  Site News -  Contact   Sitemap  

Copyright © 2000 - 2010 exforsys.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape