What are concepts of OOPS and how are they implemented in
Java?
Answers were Sorted based on User's Feedback
Answer / tarangini
oops concepts are Encapsulation, inheritance, abstractio
and polymorphism.
Encapsulation: Buildingup of the data and methods as a
single unit is called encapsulation. It isolates the
members of one class from the members of another class, so
we can declare same variable in both the classes.
best example for encapsulation is: A Class
Inheritance: Producing the new classes from already
existing class is called inheritance. The newly produced
class contains the features of old class and it has its own
features.
the use of inheritance is reusability.
Abstraction: Hiding unnecessary data from the user is
called Abstraction.
Polymorphism: Poly means many. Morphism means forms.
If same object perfrom different tasks is called
polymorphism.
| Is This Answer Correct ? | 15 Yes | 0 No |
Answer / ravikiran(aptech mumbai)
abstartcion
inheritence
polymorhism
encapsulation
| Is This Answer Correct ? | 2 Yes | 1 No |
What is the difference between the paint() and repaint() methods?
What is the difference between a method and a procedure?
How to split a string in java?
Explain the differences between public, private, protected and static?
Can you run the product development on all operating systems ?
What is difference between == and === in js?
Why set do not allow duplicates in java?
What is indexof?
What is the Scope of Static Variable?
Define iterator and methods in iterator?
How to invoke external process in java.
What is the difference between class & structure?