oops concepts

oops concepts

What is polymorphism?Explain with an example. What is abstraction?Explain with an example. What is inheritance?Explain with an example. What is encapsulation?Explain with an example.

View Answers

December 9, 2011 at 4:47 PM

Abstraction:Providing necessary attributes and operations ,hiding the internal things is called Abstraction.Example is a CAR will a have parts like engine,tire....But the user of the car(driver) know how to drive the car.But he doesn't know any knowledge of these parts.

Inheritance:Process of creating new class from already existing class is called inheritance.new class is called 'sub class','child class','derived class' and existing class is called 'super class','base class','parent class'. Example:Parents and children relationship

Encapsulation:binding the data and functions into a single component is Encapsulation. Ex:Java class is combination of variables and methods. Ex2:medicine capsules

Polymorphism: Poly means 'many' and morphism means 'forms'.It is a Greek word.To take more than one form is called Polymorphism. Ex:The person in home act as a son or husband same person in office act as a employee ,, ,, in society act as citizen.

Ads









Related Tutorials/Questions & Answers:
oops concepts
oops concepts  What is polymorphism?Explain with an example. What is abstraction?Explain with an example. What is inheritance?Explain with an example. What is encapsulation?Explain with an example
OOPs concepts in Java
Object-Oriented Programming (OOPs) concepts in Java helps in creating programs that are based on real world. OOPs is very flexible and compatible and hence... application that are developed on the OOPs concepts at first analyze the program
Advertisements
Interview Questions - What are the Fundamentals of OOPS?
Concept and OOPs concepts in Java. View all interview questions at Java Interview...Interview Questions - What are the Fundamentals of OOPS?  Hi, What are the Fundamentals of OOPS? Thanks   Hi, Java is Object Oriented
Java7 : OOPs Concepts
JAVA7 : OOPs Concept In this section we will discuss concept of Object..., better termed as OOPs is a paradigm where everything is represented as an object.... Everything in OOPs is written inside the class so that you can reuse the class.You
what is oops in java
what is oops in java  what is oops in java
what is oops in java
what is oops in java  what is oops in java
Java & OOPs
Java & OOPs  Is JAVA a fully Object Oriented Language? or A what degree Java supports Fully OOPs concept?   Java is not a fully object oriented language because Java is not a completely object oriented language
oops
oops
What Is OOPS In Java
What Is OOPS In Java In this section we will learn about the basics of Java. Here we will see the concepts of OOPs. We will discuss the basics of OOPs... concepts of OOPs are as follows : Object : A real world entity is an object
ModuleNotFoundError: No module named 'oops'
ModuleNotFoundError: No module named 'oops'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'oops' How to remove the ModuleNotFoundError: No module named 'oops' error
What is oops in php with example?
What is oops in php with example?  Hi, I heard some where that PHP is support OOPS and its new feature is PHP. Every is now using OOPs in PHP. What is oops in php with example? Can anyone give me code example? Thanks
What is OOPs in PHP ?
What is OOPs in PHP ?   Hi, I am a beginner in PHP Programming Application. I have some doubt on What is OOPs in PHP programming. How the OOPs concept helps us in PHP Programming. Please provide me any online reference so that i
Hibernate concepts
Hibernate concepts  hibernate concepts Entity System,Entity Named Resolver,Auxiliary database objects,ternary associations and interceptors are used in real -time programming
ModuleNotFoundError: No module named 'oops_celery'
ModuleNotFoundError: No module named 'oops_celery'  Hi, My Python... 'oops_celery' How to remove the ModuleNotFoundError: No module named 'oops_celery' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'oops-parser'
ModuleNotFoundError: No module named 'oops-parser'  Hi, My Python... 'oops-parser' How to remove the ModuleNotFoundError: No module named 'oops-parser' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'oops_twisted'
ModuleNotFoundError: No module named 'oops_twisted'  Hi, My Python... 'oops_twisted' How to remove the ModuleNotFoundError: No module named 'oops_twisted' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'oops_amqp'
ModuleNotFoundError: No module named 'oops_amqp'  Hi, My Python... 'oops_amqp' How to remove the ModuleNotFoundError: No module named 'oops... have to install padas library. You can install oops_amqp python with following
ModuleNotFoundError: No module named 'oops_dictconfig'
ModuleNotFoundError: No module named 'oops_dictconfig'  Hi, My... named 'oops_dictconfig' How to remove the ModuleNotFoundError: No module named 'oops_dictconfig' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'oops_timeline'
ModuleNotFoundError: No module named 'oops_timeline'  Hi, My... 'oops_timeline' How to remove the ModuleNotFoundError: No module named 'oops_timeline' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'oops-tools'
ModuleNotFoundError: No module named 'oops-tools'  Hi, My Python... 'oops-tools' How to remove the ModuleNotFoundError: No module named 'oops... have to install padas library. You can install oops-tools python
ModuleNotFoundError: No module named 'oops_wsgi'
ModuleNotFoundError: No module named 'oops_wsgi'  Hi, My Python... 'oops_wsgi' How to remove the ModuleNotFoundError: No module named 'oops... have to install padas library. You can install oops_wsgi python with following
ModuleNotFoundError: No module named 'concepts'
ModuleNotFoundError: No module named 'concepts'  Hi, My Python... 'concepts' How to remove the ModuleNotFoundError: No module named 'concepts... to install padas library. You can install concepts python with following
ModuleNotFoundError: No module named 'concepts'
ModuleNotFoundError: No module named 'concepts'  Hi, My Python... 'concepts' How to remove the ModuleNotFoundError: No module named 'concepts... to install padas library. You can install concepts python with following
ModuleNotFoundError: No module named 'oops_datedir_repo'
ModuleNotFoundError: No module named 'oops_datedir_repo'  Hi, My... named 'oops_datedir_repo' How to remove the ModuleNotFoundError: No module named 'oops_datedir_repo' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'django-concepts'
ModuleNotFoundError: No module named 'django-concepts'  Hi, My... named 'django-concepts' How to remove the ModuleNotFoundError: No module named 'django-concepts' error? Thanks   Hi, In your python
php_oops
What are the concepts and purpose of Spring configuration file.
What are the concepts and purpose of Spring configuration file.  Hi, What are the concepts and purpose of Spring configuration file. Thanks
Polymorphism
Polymorphism        OOPs revolve around the four concepts: 1. Encapsulation 2. Polymorphism 3. Abstraction 4. Inheritance In OOPs, these concepts are implemented through
ModuleNotFoundError: No module named 'Vectors-of-Locally-Aggregate-Concepts'
ModuleNotFoundError: No module named 'Vectors-of-Locally-Aggregate-Concepts...: ModuleNotFoundError: No module named 'Vectors-of-Locally-Aggregate-Concepts' How...-Concepts' error? Thanks   Hi, In your python environment you
Inheritance
Inheritance        OOPs revolve around the four concepts: 1. Encapsulation 2. Polymorphism 3. Abstraction 4. Inheritance In OOPs, these concepts are implemented through a class

Ads