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 are the advantages of autoboxing?
What are static variables and functions?
Realized?
What is boolean in java?
What is namespace in java?
What is Recursion Function?
What is the difference between static and global variables and also define what are volatile variables?
What is gc()?
If an object is garbage collected, can it become reachable again?
What are void methods?
Is Constructor possible in abstract class in java ?
What is the meaning of flag day?
What are java packages? What is the significance of packages?
Can a source file contain more than one class declaration?
How do you take thread dump in java?