explain oops concepts with examples?
Answer Posted / ravi kant
oops is a extension of modular approaches of programming..
the basic thing are-:
class-:it is a structure.blueprint,skeleton of the object
object-:it is identities by its unique name,it represent a particular instant of class..
abstraction-:hiding only the unnecessary data.
encapsulation-:protecting our data..
eg-: school bag
inheritance-:it form a new class from the existing class..
parent class inherit the base class.
polymorphism-:it allow routine to use variable of different type at differnt time..
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How can we break singleton in java?
Why pass by reference is not possible in java?
What do you mean by Function Overloading in java?
Is string thread safe in java?
When will you define a method as static in Java?
Explain try and catch keywords in java?
What do you understand by java?
Can we assign the reference to this variable?
What is the difference between an array and an array list?
What is the difference between state-based unit testing and interaction-based unit testing?
How do you remove an object from an arraylist in java?
how are methods defined?
What is abstract class constructor called?
What is pojo class in java?
Why is boolean important?