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!!
||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
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
|| Vikram Chandra |
|View All Answers |