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 oops concept with example?

798


Templates mean

1865


What is abstraction oop?

852


Explain the concepts involved in Object Oriented programming.

909


Can an interface inherit a class?

819


What is difference between abstraction and encapsulation?

846


What is purpose of inheritance?

889


What is abstraction in oop?

883


how to get the oracle certification? send me the answer

1931


what is graphics

2233


What type of loop is a for loop?

880


write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.

2019


What is polymorphism give a real life example?

789


Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.

985


What is the difference between abstraction and polymorphism?

871