What are the OOPS concepts?

Answer Posted / varsha

OOPs concepts are
1)object
2)class
3)encapsulation
4)abstraction
5)polymorphism
6)inheritance
7)message passing
8)dynamic binding

BASIC CONCEPT OF OOPS:
1.OBJECTS:
An object is an abstraction of a real world entity. It may represent a person, a place, a number and icons or something else that can be modeled. Any data in an object occupy some
space in memory and can communicate with each other .

2.CLASSES:
A class is a collection of objects having common
features .It is a user defined datatypes which has data members as well functions that manipulate these data’s.

3.ABSTRACTION:
It can be defined as the separation of unnecessary details or explanation from system requirements so as to reduce the complexities of understanding requirements.

4.ENCAPTULATION:
It is a mechanism that puts the data and function together.
It is the result of hiding implementation details of an object from its user .The object hides its data to de accessed by only those functions which are packed in the class of that object.

5.INHERITANCE:
It is the relationship between two classes of object such that one of the classes ,the child takes all the relevant features of other class -the parent.
Inheritance bring about reusability.

6.POLYMORPHISM:
polymorphism means having many forms that in a single entity can takes more than one form. Polymorphism is implemented through operator overloading and function overloading.

7.DYNAMIC BINDING:
Dynamic binding is the process of resolving the function to be associated with the respective functions calls during their runtime rather than compile time.

8.MESSAGE PASSING:
Every data in an object in oops that is capable of processing request known as message .All object can communicate with each other by sending message to each other

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 the diamond problem in inheritance?

585


What are the three parts of a simple empty class?

1462


What is multilevel inheritance explain with example?

631


What is polymorphism and types?

607


What are functions in oop?

588






What are oops methods?

570


What is solid in oops?

617


How is polymorphism achieved?

587


IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?

1585


What are classes oop?

603


Is this job good for future? can do this job post grduate student?

1699


i got a backdoor offer in process global,Bangalore..Can i work with it?

2334


write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.

1795


Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

3559


What is pure oop?

601