What are the OOPS concepts?
Answer Posted / m@@hi agrawal
1.object-objects are basic runtime entity which shows the
behavior of the class.an object has state,behaviour,identity
.in other words "object is known as instance of class".
2.class-a class is collection of objects of similar types.
3.data abstraction-it is a collection of data that describes
a data object.
4.encapsulation-the wrapping of data into a single
unit(called class)known as encapsulation.
5.inheritance-inheritance is the process of creating new
classes (derived class)from base class.
6.polymorphism-it means ability to take more than one
form.i.e. it meanse "many forms".
7.dynamic binding-in dynamic binding,events occur at the run
time.in such function calls the complete address information
is known only at run time.it is known as dynamic binding
because the selection of the apporiate function is done
dynamically at run time.
8.message passing-an object oriented program consist of a
set of object that communicate each other.objects
communicate with one another by receiving & sending
information much the same way as people pass messages to one
another.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can we have inheritance without polymorphism?
What is stream in oop?
How is class defined?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
c++ program to swap the objects of two different classes
What is a class and object?
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
What is ambiguity in inheritance?
can inline function declare in private part of class?
Which is better struts or spring?
What is the real time example of inheritance?
program for insertion ,deletion,sorting in double link list
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’.
What are the two different types of polymorphism?
State what is encapsulation and friend function?