explain oops concepts with examples?

Answer Posted / ravi kant

oops is a extension of modular approaches of programming..
the basic thing are-:
class-:it is a structure.blueprint,skeleton of the object
object-:it is identities by its unique name,it represent a particular instant of class..
abstraction-:hiding only the unnecessary data.
encapsulation-:protecting our data..
eg-: school bag
inheritance-:it form a new class from the existing class..
parent class inherit the base class.
polymorphism-:it allow routine to use variable of different type at differnt time..

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an empty class? What functionality does it offer in Java?

674


what is the major difference between linkedlist and arraylist in java?

551


What do you understand by abstract classes?

602


Explain the difference between serializable and externalizable in java?

537


What is the difference between this() and super() in java?

541






What is object-oriented programming?

570


What are java annotations?

646


Which is the best sorting technique in java?

523


how to write a server program and sending the mails to the server using smtp protocol please help me

1551


Why string is immutable or final in java

613


How do weakhashmap works?

589


What is map and hashmap in java?

620


What are autoboxing and unboxing? When does it occur?

534


How many times finalize method will be invoked? Who invokes finalize() method in java?

575


What is java full form?

529