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


Please Help Members By Posting Answers For Below Questions

How many decimal places is a double?

633


What are the advantages of java?

610


Which collections are thread safe in java?

572


What are some alternatives to inheritance?

657


What does int [] mean in java?

644






Can static method access instance variables ?

699


What is the collections api?

662


Difference between overriding and overloading in java?

700


What is the purpose of an interface?

647


What is constructor chaining and how is it achieved in java?

661


Why is java architectural neutral?

719


What are the two basic ways in which classes that can be run as threads may be defined?

660


Is string a data type in java?

683


What is the class in java?

650


Do you know why doesn't the java library use a randomized version of quicksort?

621