What are the OOAD concepts in java explain with examples?
Answer Posted / sk
there are four concepts of ooad in java they are........
1.Polymorphism:one name many forms.
ex:overloading(compile time polymorphism)
overiding(Run time polymorphism)
2.Abstraction:unclearness
ex:when ever we are invoking any method
what logic is performing we do not know but we are getting
the output
3.Inheritance:we are reuse the code by using the extends
keyword
4.Encpsulation:binding the variable and methods is known as
encapsulation
| Is This Answer Correct ? | 29 Yes | 14 No |
Post New Answer View All Answers
What is the difference between a vector & an array list?
what is meant by abstract class?
Explain the different forms of polymorphism?
What is command line argument
What does sizeof return?
Can we declare register variable as global?
Can the garbage collection be forced by any means?
What is an image buffer?
What is the difference between an object-oriented programming language and object-based programming language?
What is the static method?
Can we assign the reference to this variable?
Can java list be null?
Distinguish between a predicate and a function?
When does an object becomes eligible for garbage collection in java?
Explain importance of finally block in java?