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 jar?
How can you add and remove nodes in jtree?
I want my class to be developed in such a way that no other class (even derived class) can create its objects. How can I do so?
y cant i declare method like public final static show()
What is the difference between a vector & an array list?
whatis Home interface and Remoteinterface? with example?
Why pass by reference is not possible in java?
What is a Null object?
How many bits does a boolean take?
What do you understand by the term string pool?
What is the purpose of a default constructor?
What does sprintf mean?