Object Oriented Programming Concepts
Said..
All these are oops concept. Object-oriented problem solving approach is very similar to the way a human solves daily problems. It consists of identifying objects and how to use these objects in the correct sequence to solve the problem. In other words, object-oriented problem solving can consist of designing objects whose behavior solves a specific problem. We can use following approaches
Abstraction Abstraction is the process or result of generalization by reducing the information content of a concept or an observable phenomenon, typically in order to retain only information which is relevant for a particular purpose. For example, abstracting a leather soccer ball to a ball retains only the information on general ball attributes and behaviour. Similarly, abstracting happiness to an emotional state reduces the amount of information conveyed about the emotional state. Computer scientists use abstraction to understand and solve problems and communicate their solutions with the computer in some particular computer language.
Polymorphism
Polymorphism is a simple concept that you understand right now, as it is prevalent through life. You are a person, which person is a base type and you are a more specific representation of that type. There are many people that inherit that type, of which you are a concrete implementation of that type: you have your own beliefs, attributes, and qualities that go beyond just a general person. For instance, we all have a blood type, shoe size, arm length, and many other properties. But we each add our own implementation to the person interface.
You drive an automobile, which this type has properties like wheel size, engine size, gas tank size, and other properties. The automobile you drive is a concrete implementation of the automobile interface. It has additional features, like sliding doors, logo type, cd changer slot count, moon roof lever location, or other various properties that are specific to the make/model of the car. In addition, automobile may have certain behaviors like open/close door, open trunk, turn wheel, and other behaviors that would be specific to an automobile.
In OO programming, using the automobile example, Automobile would be the base class, and each automobile manufacturer would have its own implementation. For instance, Honda has V-Tec technology, which is in its own implementation. Volvo uses diesel engines, which is the TDI technology. More importantly, you may add an added level of detail between automobile and the make/model implementation, such as Car, Truck, or Suv supertypes, to provide more relevant information.
Encapsulation
Think of encapsulation as a black box; data is sent to a method, a lot of work goes on using the data, of which you don't know or care about. An output is returned to the caller. That is the process of encapsulation, or information hiding.
|
keerthana
Said..
Hi, This answer wil be useful for all
|
Mirza Azhar Baig
Said..
Polymorphism is quite good elaborated.
|
sangeetha Said..
this is the first time i am giving my opinion. i think this is quite good because it is explained well with the example
|
|
|
sunil
Said..
Very nice Please explain Inheritance and Interface think this is quite good because it is explained well with the example
|
|
|
suneel
Said..
nice one easy to understand it helps us.
|
stuti
Said..
this answer is not enough because we want to know example of abstraction ,encapsulation & polymorphism related with java not with real life. we want to know in java these concepts are used where ??so i think there should be some improvements in your answer.
|
muthuvel
Said..
it is very useful for starting developer .... Think of encapsulation as a black box; data is sent to a method, a lot of work goes on using the data, of which you don't know or care about. An output is returned to the caller. That is the process of encapsulation, or information hiding.
|
kothavari
Said..
eruma madungala example enga da pichakaara naye parathesi stupid sense less website..........................................................................................................................................................................................................................................................................................................................................................................
|
Dinesh Kumar
Said..
Yeah good it is very help ful for introduction concept of oops..it helps to develop the oops concept in an program.....adding inheritance and interface would be the most helpful.........................................................................................................
|
RAJINIKUMAR
Said..
It is useful for getting knowledge on oops concepts..... also real time use of it............ FROM COIGN
Think of encapsulation as a black box; data is sent to a method, a lot of work goes on using the data, of which you don't know or care about. An output is returned to the caller. That is the process of encapsulation, or information hiding.
|
raj kapoor
Said..
very great lesson.. never listened the class but 2 paras shown me full details wow nice and good explanation to study with great experience about illustration of oop ...... ... .... urs raj kapoor B.TECH(cse) IIT(mumbai)................................................................................................................................................................ ............................................. ..................... ...................................................... ................................................ ..................................................... ............................................ .................................................... ...................................... . .......... . . . ........................................
|
raj malhotra
Said..
arey iit and nit salon tumhe kya aata he jaffa tum log beer wisky pite ho baap tume lakh rupe dete hein to tum kya karthe ho kutho
........... ........................... ......................................... ........ ..................... ............ urs raj malhotra deen lpu(phagwara) cse department........ . ...... . . . . . .
|
Nethimahesh
Said..
this is very usefull............... and the improve the knowledge and many features are availble...........................any one of the pearson use the subject very very very.............useful............and the .................................................. ..........................................many pearsons and ..........................................use the subject......................................
|
Arifeen
Said..
this is crap and extremely unusable,....and where the FU*K are the examples?????????...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
|
jelai
Said..
....................................................................................................................................................................................................................................................................................................................................................................................................................................................................
|
jelai
Said..
this page sucks........................................................................................................................................................................................................................................................................................................................................................:-D
|
jelai
Said..
this page sucks........................................................................................................................................................................................................................................................................................................................................................:-D
|
aldwin
Said..
nice one 878ryfgh gd fgfdg gffdg
gf f fd
g g ggg ggggg ggggg g g g gg g gg gb g g g g g g g g g g gg g g
g
g g g g g g gg ' '''''''''' ' '''' ;'' ' ' ' ''''' ' ' ' ' ' '' ' '' ' '''' ' '' '' ' '
' ' ;;;;; ;;
k k k k k k k k k kk k
k
kk k k k k kk k k
k kk k k
k k k k k k k k kkk
kk k
k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k
|
naresh(Tera)
Said..
polymorphism define very well sir...........
thank you ??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????please sir define encapsulation and data hiding as like polymorphism..............
|
Alok,Bangalre
Said..
OOP is Nothing but Object Oriented Programming. In OOPs concept is implimented in our real life systems. OOPs have following features 1. Object - Instance of class 2. Class - Blue print of Object 3. encapsulation - Protecting our data 4. polymorphism - Different behaviors at diff. instances 5. abstraction - Hidding our irrelavance data 6. inheritence - one property of object is aquring to another property of object Simple Ex.
Please assume u standing near a car. How to impliments our OOPs concept for this scenario ?
Simple, car is a object b'coz it having more functions. car is a class b'coz it contain more parts and features inside. car is a Encapsulation B'coz it protected some unwanted parts or functions to user car is a Polymorphism b'coz it have different speed as display in same speedometer car is a Abstraction b'coz it hidding more parts by coverig such as engine,disel tank car is a Inheritance b'coz one car is a property of more people. i mean your car is driving bu you, your friend and your relatives.
|
+23+3
Said..
3+63+5666666666666666666666666666666666666666666666666666666666666666666666666666666666666++++++++++++++++++++522222222222222222222222222200000000000000000000000000000000000000000000000000000088888888888888888888888888888888888888844444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444456565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656564888888888888888888888888888888888888888888888888888888844444444444444444444444444444444455555555555555555555555555555555555555556666666666666666666666666666666666666666666777777777777777777777777777777777777777777777777777779999999999999999999999999999999999999
|
|
|
lavan
Said..
mr.alok realy good explanatn, thank u.............................................................. nw i clear about oop concept.........................................................................
....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
|
Rajesh Patil
Said..
Nice Alok , Thanks a lot for given real life example. If you have any OOP notes please forward it to me. prajesh.pa17@gmail.com
Thanks is advance KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK
|
shailesh wagh
Said..
can u say overriding and overloading are diff types of polymorphism? wt r types of polymorphism? why?.........................................................................................................................................................................................................................................................................................................................................................................................................................................................
|
shailesh
Said..
.......................................................................................................................................types of polymorphism? wt r dey? ...........................................................................................................
|
akshya
Said..
phaltu log an u say overriding and overloading are diff types of polymorphism? wt r types of polymorphism? why?.............................................................................................................................................................................
|
akshya
Said..
phaltu log an u say overriding and overloading are diff types of polymorphism? wt r types of polymorphism? why?.............................................................................................................................................................................
|