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 does math floor () do?
What do you understand by an io stream?
Can a final method be overloaded?
How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming?
What is anagram word?
What an i/o filter?
How do you include a string in java?
What is an exception? difference between Checked and Unchecked exception in Java
What is difference between char array and string?
Explain heap sort?
how to create multithreaded program? : Java thread
Why string is immutable with example?
If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?
What does the @override annotation do?
Write a code to create a trigger to call a stored procedure