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 new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
   
 
Categories  >>  Software  >>  Java Related  >>  Java J2EE  >>  Core Java
 
 
 
Question
explain oops concepts with examples?
 Question Asked At :: TCS, Wipro, KUTTA, Vls, Wat Is Abstract Class?, NOWHER, ??????????, Hcl, Abhibus, Beeline, Dell, Satyam, Any I.T Company
 Question Submitted By :: ramanareddy333
I also faced this Question!!     Rank 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.

 
Vikram Chandra
 
View All Answers
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2012  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com