What are the OOPS concepts?
Answer Posted / vishanshu soni
BASIC CONCEPT OF OOPS:
1.OBJECTS:
An object is an abstraction of a real world entity. It may
represent a person,a placea number and icons or something
else that can be modelled.Any data in an object occupy some
space in memory and can communicate with eachother .
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 manupulate these datas.
3.ABSTRACTION:
It can be defined as the separation of unnecessary
details or explanation from system requirments so as to
reduce the complexities of understanding requirments.
4. ENCAPSULATION:
It is a mechanism that puts the data and function together.
It is bthe result of hiding implimintation 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 relevent
features of other class -the parent.
Inheritance bring about reusablity.
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 proces of resolving the function to
be associated with yhe respective functions calls during
their runtime rather than compile time.
8.MESSAGE PASSING:
Every data in an objest 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 ? | 0 Yes | 0 No |
Post New Answer View All Answers
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
2. Give the different notations for the class.\
What are the components of marker interface?
What is object and example?
What is difference between data abstraction and encapsulation?
Can we have inheritance without polymorphism?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
What is a null tree?
program for insertion ,deletion,sorting in double link list
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?
What is super in oop?
What is basic concept of oop?
What does no cap mean?
Why do pointers exist?