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


Please Help Members By Posting Answers For Below Questions

What does math floor () do?

545


What do you understand by an io stream?

573


Can a final method be overloaded?

502


How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming?

549


What is anagram word?

516






What an i/o filter?

558


How do you include a string in java?

517


What is an exception? difference between Checked and Unchecked exception in Java

550


What is difference between char array and string?

517


Explain heap sort?

694


how to create multithreaded program? : Java thread

499


Why string is immutable with example?

526


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?

696


What does the @override annotation do?

553


Write a code to create a trigger to call a stored procedure

530