Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

explain oops concepts with examples?

Answer Posted / vaibhav pathak

OOP is Object Oriented Programming.
In OOPs concept is implimented in our real life systems.
OOPs have following features
1. Object - Instance of class
2. Class - Collection of Object(Methods and
variable)
3. encapsulation - Protecting our data by data hiding
encapsulation=abstraction+data hiding.
4. polymorphism - Different behaviors at diff. instances
5. abstraction - Hidding our irrelavance data and
showing necessary data to the user.
6. inheritence - one property of one object is aquring
by the another object.

Simple Ex.

Please assume u standing near a car. How to impliments our
OOPs concept for this scenario ?

Simple,
A motor bike is a object b'coz it having more functions.
motor bike is a class b'coz it contain more parts and
features
inside.
motor bike is a Encapsulation B'coz it protected some
unwanted
parts or functions to user
motor bike is a Polymorphism b'coz it have different speed
as
display in same speedometer
motor bike is a Abstraction b'coz it hidding more parts by
coverig
such as engine,disel tank
motor bike 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 ?    25 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the arraylist in java?

993


Explain the use of volatile field modifier?

1033


What is the importance of main method in Java?

1023


Explain oops concepts in detail?

974


Why do we need singleton class?

937


What is java ceil?

989


Is object a data type in java?

1065


What is externalizable?

1023


What is a predicate method?

965


How to change the priority of thread or how to set the priority of thread?

997


What is the purpose of using the java bean?

1008


Write a program to find maximum and minimum number in array?

950


What method is used to specify a container's layout in java programming?

1064


What is an abstract method in java programming?

986


Give some features of interface?

1026