ALLInterview.com :: 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  
 
Answer
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.

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
 
what is dafault constructor and paramererised constructor with example? 629
can any body body expalin best definitions & best real time exaples for opps concepts. 728
Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads. 1149
What is the java project architecture? 772
what is object slice? 500
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). 510
how to one war file class to another war file class? 619
how a programmer confirms that the data submitted has been succesfully inserted into the database(either oracle or my sql).. How a programmer confirm if there is any problem with the program he wrote for insertion... ANS:--- >executeupdate method is having boolean return type, if anything goes wrong in data insertion or data updation, it would return false. otherwise, if it successfully inserts data into the database, it would return true NOW HOW TO I CHECK IN MY DURING EXECUTION WHETHER IT RETURNS TRUE OR FALSE... WELL IT WILL DISPLAY ANY MESSAGE OR NOT 636
How to Sort Strings which are given in List and display in ascending order without using java api. 1934
2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this? 857
what is mean by ooad? where we are using? can you tell me any real time example? 1334
how to write a server program and sending the mails to the server using smtp protocol please help me 450
v-model life cycle 532
what type of questions asked for barclays technologies pune please send urgent 3554
What are the restrictions imposed by a Security Manager on Applets?. 827
E-Mail New Answers        Answer Selected Questions