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.
Related Articles
Shriv ComMedia: A global leader in IT Solutions
By: Komal | 22/11/2005 | Business
Software Development, Multimedia, Content Management, Web Solutions, Testing Solutions and Search Engine Optimization
We also undertake e-learning projects.
Offshore Product Development Boom
By: Rajput Jitendra | 12/08/2006 | Outsourcing
Today's services in offshoring market current fastest growing segments are product development, though small in size. Offshore product development boom is being fuelled by offshore companies across a variety of verticals from aerospace to medical equipment finding to drive more value-added developed software onto their products while cutting costs.
Raising the Bar Through Outsourcing!
By: Edward M. Brancheau | 16/01/2007 | Outsourcing
Outsourcing can make a huge impact on your business in a positive way. Do not be complacent and raise the bar!
Outsourcing Trends 2007: What's New and What's Not?
By: Hans Kriniger | 21/05/2007 | Outsourcing
The current year has been marked with notable developments in outsourcing field. How to obtain competitive advantage in the IT savvy environment? What are the distinctive features of transformational application outsourcing? Would global outsourcing players maintain their leading position in terms of market share?
This article features burning trends of contemporary outsourcing, introducing all the variety of novelties in management, sourcing and technological advances.
Improving your Business With Software Development
By: Anne Catherine | 06/09/2007 | Software
Having started your own business, you would definitely want to maximize the returns and increase the overall efficiency of the business and thus, maximize profits. All this is possible with the help of Software Development. The use of good business software can result in increasing the efficiency of your business and put it on the right track to achieving success.
Offshore Outsourcing
By: David | 12/11/2007 | Business
Offshore outsourcing is certainly a surefire way to speed innovation, save money, and reduce time to market. However, as with anything in life, it has its set of challenges. To ensure success, it's important to identify and acknowledge the risks, and communicate them openly with your vendor. Increased awareness and careful planning will make the process worthwhile.
Web Based (e) Accounting Solution
By: Offshore Software Development India | 29/12/2007 | Programming
Access your accounts information anytime, anywhere with E - Accounting Solution. This solution does not need an internal book keeping or final accounts application.
Project Management
By: Ajmal Khan | 02/02/2008 | Information Technology
Project management at DOTNUTSHELL Technologies UK
Project Management is a constant process during a software development project and is the responsibility of the Project Manager.
Got a Question? Ask.
Ask the community a question about this article:
Frequently Asked Questions
I am interested to know to what legal extent low ...
By: charles moore | 05-09-2008
I am interested to know to what legal extent low-lying areas demarcated as "wetlands" or drainage basins can be molested by "developers." That is, within these regions, to what extent the character of the land" may or may not be changed. Thank you. charles moore (cmoore5186@aol.com)
VoIP Software
By: Harvey | 07-07-2008
Which was the first company to offer VoIP software?
How do I create an auction site?
By: gfish05 | 21-06-2008
Does anyone know of easy to use software to create online auctions? I am looking for freeware if possible. I want to have an auction page on my website. Instead of using ebay, I would like to do it myself.Thank youSherri
What is the main difference of .netframework and ...
By: zakeeruddin | 08-06-2008
what is the main difference of .netframework and other framework
What is c#
By: pradeepbaloni | 20-05-2008
what is c#
Gdb error: Failed to read the valid object file from the memory
By: Ankitha | 11-03-2008
What is the meaning of the gdb error:" Failed to read the valid object file image from the memory".How to solve this?
Q&A Powered by:
Latest Programming Articles
Tips for Buying Software Online
By: Daniel Jowssey | 17/11/2008
Buying software online not only helps save the planet, it also has other benefits, including:
* Ease and Simplicity. You can purchase software in your underwear at 4am if you really want to. Shopping online doesn’t have to be done within regular business hours, nor do you need to look your best to do it. It’s also easy to shop around for the best prices and takes less time than driving to the shops.
Mvc Design Pattern
By: TuVinhSoft .,JSC | 14/11/2008
Model-view-controller (MVC) is an architectural pattern used in software engineering. In complex computer applications that present a large amount of data to the user, a developer often wishes to separate data (model) and user interface (View) concerns, so that changes to the user interface will not affect data handling, and that the data can be reorganized without changing the user interface.
Advantages of Low Cost Contract Programmers in Freelance Programming
By: Joanna Gadel | 12/11/2008
It observed that web industry is getting tougher thus the necessity of freelance contract programmer is required for developing more effective website with flexible features. This article states the fruitful advantages of freelance programmers in contract programming.
A Guide to Cnc Kits
By: Martin Applebaum | 09/11/2008
CNC kits are a way in which to construct your CNC machine. This article will provide some information on these machines.
A Guide to Cnc Tube Bending Machines
By: Martin Applebaum | 08/11/2008
Are you familiar with a CNC tube bending machine? This article will shed some light on the main function and components of this machine.
Ways to Hire Dedicated Php Programmers
By: Jucick | 08/11/2008
It’s not at all easy to hire dedicated PHP programmers unless you know where and how to find them. Whether you need to fix, update or enhance your website you naturally want the job done quick and right.
Top 4 Reasons Why Addressing Web Accessibility is Important
By: Matt Cave | 05/11/2008
There are very high chances that web accessibility is more important to the performance of your web site than you realize. Article takes a look at the top 4 reasons why it would be important to address the issue of web accessibility.
Xlphoto Printing, the Best Choice for Banner Printing and Poster Printing
By: Vikram Kumar | 01/11/2008
Suppose, you have visited a tourist spot or a hill station; over there, you have witnessed some of the mesmerizing locations of serene nature.
More from Maneet Puri
Smo - the New Cousin of SEO
By: Maneet Puri | 15/11/2008 | SMO
SEO and SMO, inspite of having their share of differences are quite similar. However, their roles are not interchangeable. Both the concepts are best used in complement to each other. Thus it becomes very important to know and understand the crucial characteristics of each and how and when to use them.
How to Make Your Website Friendly With New Age Browsers
By: Maneet Puri | 15/11/2008 | Web Design
You don’t create websites for a segment of users residing in a particular geographical area using a certain internet connection. Then why do you develop a website for one particular browser.
Url Design – are You Sure You are not Making These Deadly Mistakes?
By: Maneet Puri | 11/11/2008 | Web Design
URL design is a crucial factor of your website design and the corresponding SEO processes that follow. It decides how your website address and directory structure is going to look like in the World Wide Web.
Social Media – How it Soars Your Online Popularity
By: Maneet Puri | 11/11/2008 | Online Business
Social media websites have soared in popularity over the past couple of years. And what was once a fresh trend has now become a powerful online marketing mechanism.
7 Tips to Make Your Website Super Accessible
By: Maneet Puri | 23/09/2008 | Web Design
Accessibility is a crucial factor in website designing. Investing thoughts and elements on how the website looks is all well but what is more important is how accessible the it is to visitors and prospective customers.
How to Redesign Your Website?
By: Maneet Puri | 23/09/2008 | Web Design
There can be plenty of reasons to revamp your website. It could be to catch up with the Web 2.0 buzz or just to improvise on the accessibility and functionality features of the site.
Anti-accessibility Practices- What You Shouldn’t be Doing
By: Maneet Puri | 19/08/2008 | Web Design
The concept of Website Accessibility has evolved into a serious issue over time. Building an accessible website not only qualifies a website for meeting the web standards but also guarantees increased traffic inflow
Why and When to Redesign Your Website
By: Maneet Puri | 19/08/2008 | Web Design
Just like you renovate you home or office once a while, your website design can do well with the same treatment. There are plenty of reasons why you should redesign your website, but for the redesign process to be successful, it’s important that it be done at the right time with the right reason.