:: Home Page
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   Errors
   Testimonials Refer this Site  Refer This Site to Your Friends  Site Map  Contact Us      
Categories >> Software >> Java Related >> Java J2EE >> Core Java



Question explain oops concepts with examples?
 Question Asked In Companies :: DELL, HCL, Satyam, TCS, Wipro, VLS, AbhiBus, Beeline,     < I also faced this Question! >
 Question Submitted By :: ramanareddy333
  Answer Posted By  
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 ?

car is a object b'coz it having more functions.
car is a class b'coz it contain more parts and features
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.

Is This Answer Correct ?    101 Yes 30 No

  vikram chandra
View All Answers
Please Help Members By Posting Answers For Below Questions
 Question Views   Select
can any body body expalin best definitions & best real time exaples for opps concepts. 724
how to one war file class to another war file class? 615
which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2? 4544
Write a java program to find the route that connects between Red and Green Cells. General Rules for traversal 1. You can traverse from one cell to another vertically, horizontally or diagonally. 2. You cannot traverse through Black cells. 3. There should be only one Red and Green cell and at least one of each should be present. Otherwise the array is invalid. 4. You cannot revisit a cell that you have already traversed. 5. The maze need not be in the same as given in the above example 1003
what is the use of pojo (plain old java objects)? how it is interact with crystal reports? pls urgent 598
How listener identify that the event came from a particular object? 488
make a method which any number and any type of argument and print sum of that arguments..... 397
What is Applet Stub Interface ? 871
EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006. 7130
Howto get an object that will perform date & time calculations then format it for output in some different locales with different date style.can ne1 tel me the answer of this question.pls 457
we have syntax like for(int var : arrayName) this syntax is to find whether a number is in the array or not.but i want to know how to find that number's location. 518
For ease of programming you can consider the maze as a 2D array with colors represented by below integer and characters (in capital letters). • B - Black • W -White • G- Green • R- Red R B W B W W W W W W B W B B W W W W W W W B W B W W W B W W W W B B W W W B W W W B W W B B B B W B W B W W B W W W B W W W B B B W W B W W W B W W B W B W W W B W B W W W W B B W W W W B W W W W W G Shortest Route Problem: • Solution that finds the shortest Route between Red and Green &#61607; White will have 1 Weight. &#61607; Red and Green carry no weights. &#61607; Shortest path is the path with less weight when you add up the weights in the path. 595
hr interview how many minutes asking question 505
take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero). 506
how to handle exceptions in ejb? 798
E-Mail New Answers        Answer Selected Questions