explain oops concepts with examples?
Answer Posted / nirmal kumar
Abstraction: is hiding irrelevant of data
object: Instance of class
class: Blue print of object
polymorphism: different function with different parameter
interface:is semantically related to abstract
members,members by public default.
Encapsulation: capsule with data and object
inheritance: Base class derived from another class
Is This Answer Correct ? | 26 Yes | 11 No |
Post New Answer View All Answers
How many decimal places is a double?
What are the advantages of java?
Which collections are thread safe in java?
What are some alternatives to inheritance?
What does int [] mean in java?
Can static method access instance variables ?
What is the collections api?
Difference between overriding and overloading in java?
What is the purpose of an interface?
What is constructor chaining and how is it achieved in java?
Why is java architectural neutral?
What are the two basic ways in which classes that can be run as threads may be defined?
Is string a data type in java?
What is the class in java?
Do you know why doesn't the java library use a randomized version of quicksort?