Join WhatsApp Channel Join Now
Join WhatsApp Group Join Now
Telegram Channel Join Now

Tuesday, 7 April 2015

Oops – Abstraction, Encapsulation, Inheritance & Polymorphism – Real time Examples – Example programs

                Welcome to freshers junction blog. In the previous articles freshers junction explains individually about Abstraction, Encapsulation, Inheritance & Polymorphism. Almost in every technical interview frequently asked question is “What you know about Oops”. When you receive this question from interviewer then you can explain all about 4 concepts Abstraction, Encapsulation, Inheritance & Polymorphism and also give him/ her real time examples for Abstraction, Encapsulation, Inheritance & Polymorphism, then you can get best impression.

Here now freshers junction explains What is Oops? What are concepts are present in the Oops.

Oops (Object Oriented Programming language):              

oops-concepts-images
                Object Oriented Programming language is a high level programming language. Object Oriented Programming language is focus on design and build applications. Which language that satisfies 4 concepts (Abstraction, Inheritance, Polymorphism and Encapsulation) is called Object oriented programming language.
Major Concepts in Oops:
1. Abstraction
2. Polymorphism
3. Inheritance
4. Encapsulation

1.Abstraction:

Abstraction can be defined as “process of representing only essential features”.
Real time example for abstraction is “ATM”
How ATM is real time example of Abstraction
Abstraction have more advantages and also have Disadvantages
Advantages and disadvantages of abstraction

2. Polymorphism

Polymorphism can be defined as “same operation may behave differently on different classes”
Real time example for polymorphism is “Door”
How Door is real time example of Polymorphism
In Polymorphism there are two types.
Detailed description of Types of polymorphism
Example programs for polymorphism

3. Inheritance


               
Inheritance is defined as “one class (child class) inherits or acquire the property (members) of another class”
Real time example for Inheritance is “parent child relationship”
How parent child relationship is real time example of Inheritance
Example Program for Inheritance ,Advantages and disadvantages of Inheritance

4. Encapsulation

                Encapsulation is defined as “Wrapping up data member and method together into a single unit”.
Real time example of Encapsulation is Car Driving, More detailed description about real time example
Encapsulation have advantages as well as disadvantages

Conclusion: If you have any queries about Abstraction, Encapsulation, Inheritance & Polymorphism concepts, then comment here we are ready to help you.

Follow us on Google+, we reach and help you more effectively

You may also search in Google as:
Real time examples of  Abstraction, Encapsulation, Inheritance & Polymorphism , example programs for Abstraction, Encapsulation, Inheritance & Polymorphism, advantages and disadvantages of Abstraction, Encapsulation, Inheritance & Polymorphism, details about oops concepts, Abstraction, Encapsulation, Inheritance & Polymorphism, oops concepts with examples, real time examples for oops concepts, real time example explanation Abstraction, Encapsulation, Inheritance & Polymorphism, Oops concepts in java with real time examples, Oops concepts in .Net with real time examples

0 comments:

 
close

Join Telegram Channel

Join FreshersJobsUpdates - Your Job Search End Here

Click Here To Join Telegram Channel