What is the main reason to design the OOPS concept ?
One of my friend told me "OOPS Designed mainly for Maintenance". Is it true ?
or any other reason behind this ?
--------------------
suresh
What is the main reason to design the OOPS concept ?
One of my friend told me "OOPS Designed mainly for Maintenance". Is it true ?
or any other reason behind this ?
--------------------
suresh
OOPS uses abstraction, including Modularity,Polymorphism and encapsulation.This promotes greater flexibility and maintainability
OOPS for Maintainance is quite an unfair comment.OOPS came into picture because of the necessitry to bind data and functionality together in a secure way.
We don't want our data to be accessible by everybody, we want it to be accessed by a few pieces of code which is written by us. We can manipulate data only though these defined rules.
You can refer any C++ introduction book. You will come to know more.
-Kalayama
[COLOR="Blue"][SIZE="2"]"If you are not living on the edge of your life, you are wasting space"[/SIZE][/COLOR]
Someone says "Impossible is nothing". The man next him says "Let me see you licking your elbow tip!"
Refer "Robert Lafore" book.I feel that this book is very good for those who wan to gain knowledge of OOPS concept.
bye
:)
NEVER SAY DIE.
Well, Robert Lafore is for very very beginners to programming. Stanely Lippman's "C++ Primer" is "The Book" for C++ programmers.
-Kalayama
[COLOR="Blue"][SIZE="2"]"If you are not living on the edge of your life, you are wasting space"[/SIZE][/COLOR]
Someone says "Impossible is nothing". The man next him says "Let me see you licking your elbow tip!"
Thanks to all...I fight(using words only) with my friend using your points....
----------------
suresh
OOPS stands for Object oriented programming concept.
It basically designed on principle like Abstraction,Encapsulation,Polymorphism,Inheritance.
Abstraction-The ability of programmatic objects to represent real-world objects is called abstraction.
Encapsulation-Encapsulation is the concept that implementation of an object is independent of its interface.
Polymorphism-Polymorphism is the ability of different classes to provide different implementations of the same public interfaces.
Inheritance-For reusablily,such as using used functionaliy from existing one.
Last edited by riteshkmirche; 03-03-2007 at 03:47 AM.
very easy question
if i understand it well
concept off oop came from electronics, in electronics we make some plant or model through which we make circuits of same type time and again
so y we dont make our code like that we can use it time and again
for example if we make class of eye
then we can use it at manay places
like human eye
animal eye
any where
so as if u make a class tyre then object of it u can use again and again! "but class shud be generic and generel or adt
"
HI psuresh,
I am agree with Kalayama.
OOP is mainly use for Data Security .no one can access the data out side the world.........
And we can design as like real life................
if u want more plz reffer Balguru Swami...........
Regards
Jahid
HI Suresh,
May be your friend is referring to features of OOPs such as it maintain data integrity, it maintain security, it maintain the format such as the class we use in programs. But main thing is these concepts are to enhance your programming ability and one can you real life concepts.
So in one way he might be correct!
Take care,
Raafay.
thank for all
Thanks to all ...
...Ravi
Main reason to design OOPS is to handle complex programs. Your friend is a bit right in saying it is to handle maintenance task. But this is not the only purpose. Basically with structural programming once the program size grows beyond 25000 lines of got it becomes very difficult to manage it. There comes modular programming and OOPS to sort out the problem.
I hope I am clear.
vipin