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
Distinguish between a predicate and a function?
Is 0 an irrational number?
List some important features of java 10 release?
How does indexof work?
Suppose if we have variable ' I ' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?
What are the different types of java?
Why arraylist is used in java?
How arrays are stored in memory in java?
What does arrays sort do in java?
What is the private method modifier?
What does the @override annotation do?
What is the difference in between cpp and java? Can u explain in detail?
What do you mean by light weight and heavy weight components?
What is the difference between overriding & overloading?
In case of inheritance what is the execution order of constructor and destructor?