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
Does constructor be static?
Explain about anonymous inner classes ?
Which container method is used to cause a container to be laid out and redisplayed in java programming?
Is main a keyword in java?
What is the effect of keeping a constructor private?
What is immutable in java?
What are the files generated after using IDL to java compiler?
Why can't we make a class private in java?
What are 3 boolean operators?
Explain methods specific to list interface?
If we allocate the memory using 'new' & de-allocated using 'free' then what will happen?
how to create constants in java?
What are different types of expressions?
Explain about instanceof operator in java?
How do you do descending order in java?