OOP Concept – Object Oriented Programming Concept



Author: Maneet Puri

OOP stands for Object Oriented Programming. It's all about classes and objects; a class is collection of member functions and variables with different scope of use and accessibility. An object can be a referred as an entity which gets properties and attributes from the class for which it has been created. It will be easy to explain classes and objects using real life example as below:

Let's say we call Car a class, every car has some properties and features. The properties includes speed, number of gears it has, its mileage, suspension etc, whereas the features includes power windows, staring, breaks etc. Now Honda Civic will be called an object of the class car, and this object inherits all the features & properties of the class car and which can have values respective to the object.

Inheritance - This is the first feature of an object oriented programming language, it means as soon as an object it created for a class its properties are automatically given to the object. Now depending upon the type of property the object can have value respective to it and there could be a property which will stay fixed.

This is known as scope of the member variables & functions defined in the class. For example the class car has a property that it will have 4 wheels, which will remain same for almost every object that will be created from this class. So we can say that the scope of this property is private and can not be changed at objects level, whereas as a property maximum speed will have a scope public i.e. for every object that will be created this property can be different for every object.

Polymorphism - This is the second feature of an object oriented programming language, and it means a function defined performing different functions as the variables passed to it changes. For example we define a function called 'concat' which can take two parameters.

Now if the parameters passed are of the type integer the function will return sum of two numbers whereas if the parameters passed are characters then the function will return two charters concatenated.

Encapsulation - Third and most important feature of any object oriented programming language. This is associated with data hiding, which means the value of a variable is accessible to the objects of class but they can not change the value assigned to the variable.

If scope of a variable is defined as private then the same will also not be accessible to all objects of a class.

Abstraction - Last but not the least this feature of any OO programming, this feature gives the option to represent the needed information in program without disclosing all details. Also this feature gives the possibility of creating user defined data types increases the power of programming language.

Thus to conclude classes are data types on which objects are created. So while a class is created no memory is allocated only when an object is created memory gets allocated. Object is the basic unit of object oriented programming bundled together using functions to operate on data.

About the Author:
Maneet Puri having an extensive experience of web based applications has assisted him to implement various knowledge driven process for his clients, and at the same time he provides consultancy to his clients for their website maintenance. With this expertise he has successfully added KPO and website maintenance as verticals to the Web Development company he is heading. "


Total Word Count: 609
Click here to View more Articles at: Invision-Graphics
Invision-Graphics Article Source:

Approved on Wednesday, December 31 @ 18:59:59 EST by Shawn DesRochers
 
Options
 Return to the main page Return Home

 Print Page Print Version

 Send to a Friend Send To A Friend

 Discuss Article Discuss Article

 Related Articles Related Articles

 Search Articles Search Articles

 Stories Archive Stories Archive

 Subscribe Newsletter Subscribe Newsletter

 Syndicate Article Topic: Programming XML News Feed

 Contact US Contact US
Article Rating
Average Score:
Votes: 0

Rate this article:
OOP Concept – Object Oriented Programming Concept

OOP Concept – Object Oriented Programming Concept – Aticle Rating 5 Stars
OOP Concept – Object Oriented Programming Concept – Aticle Rating 4 Stars
OOP Concept – Object Oriented Programming Concept – Aticle Rating 3 Stars
OOP Concept – Object Oriented Programming Concept – Aticle Rating 2 Stars
OOP Concept – Object Oriented Programming Concept – Aticle Rating 1 Star


Syndicate Article
 My Yahoo!
 Google
 NewsGator
 Stumbleupon
 PluckIT
 Rojo
 Bloglines
 My AOL
 Blogrolling
 ENewsblog
 NewsIsFree
 NetVibes
 del.icio.us
 Technorati
 Digg This
 FeedBurner
 FeedMailer
Sponsor Advertising
Writing Community
community for fiction writing, story writing, poetry writing, writing contests, writing help, writing warnings

Text Advertising Info Text Advertising Info
Support US

Make a donation!
If you enjoy our services, make a donation today!

Google Support Ads
Related Links
More about Programming
News by Admin


Advertise Here

Most read story about Programming:
Installing PhpBB On GoDaddy

Book Advertising
Get this Book Now
Buy this Book Now!
Click Here
Comment on Article:"OOP Concept – Object Oriented Programming Concept" Login | Create an Account | 0 comments
The following comments are owned by the individual who posted them. Invision-Graphics is not responsible for the content or the accuracy of the following statements.
No Comments Allowed for Anonymous, please Register
Related Categories
Technorati TagsTechnorati Tags


Click Here to Advertise
Affordable Hosting! http://www.invision-graphics.com/images/banners/468X60_VISIONHOSTING.gif
 Today: 30,868  Yesterday: 27,683  Total Hits: 41,050,272
Page Rendered in: 0.09s - Total Queries: 42 - MySQL DB: 32 mb's - Pages served in past 5 minutes: 214