explain oops concepts with examples?
Answer Posted / srinu
dataabstraction:it is giving only important things hiding
unnecessary things
encapsulation : it is data hiding under wrapper class
inheritance :it is reusebility code
example : parent propert belongs to child
polymorpism: it is flexibility when output depends upon
no of input
in this we have overloading
overloading means it contains same data type and
different parameters
Is This Answer Correct ? | 77 Yes | 35 No |
Post New Answer View All Answers
What is function and its uses?
Can we have a method name same as class name in java?
What is a java lambda expression?
What is the java project architecture?
What is java virtual machine and how it is considered in context of java’s platform independent feature?
How to print an arraylist in java?
Can an interface extend another interface?
In Java list the methods that can be overridden?
What is Java Package and which package is imported by default?
What are data structures in java?
What is a boolean structure?
Can you write a java class that could be used both as an applet as well as an application?
What is comparable and comparator interface? List their differences
What is printwriter in java?
What are the types of inner classes (non-static nested class) used in java?