what are the oops concept in java explain with real time
examples

Answer Posted / niventh mca

1,class
2,encapsulation
3,polymorphism
4,inheritance
5,Abstraction

class
collection of attributes is called class
Real time example......human body

encapsulation
To encapsulate the some methods,operations in one
class is called the encapsulation
Real time example...... capsules

polymorphism
To ability to take more than one form
Real time example...... xerox machine
inheritance
one class properties occur from another class properties
Real time example......land line...will phone....cellphone
2g....3g....

Is This Answer Correct ?    76 Yes 34 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the new features in java 8? Explain

559


Which of the following is not an isolation level in the JDBC

1612


How to set the permissions to a file in java?

542


What is early binding and late binding in java?

595


Which class is the superclass for all the classes?

535






What is class forname?

547


What are the differences between abstract class and interface?

513


Write a program to check for a prime number in java?

560


What is covariant return type?

644


How would overload a function based on return type?

552


What are the different types of java?

561


What is communist flag?

571


Is it possible to compare various strings with the help of == operator? What are the risks involved?

620


Explain the difference between transient and volatile in java?

580


What is quick sort in java?

559