What are the OOPS concepts?
Answers were Sorted based on User's Feedback
Answer / mayank gupta
There are only five concepts in the oops others may be
derived from those:
1. Encapsulation and Data Abstraction
2. Polymorphism
3. Dynamic Binding
4. Message Passing
5. Inheritance
Is This Answer Correct ? | 259 Yes | 144 No |
Answer / anurudh singh
These Are Four Main OOPS Concepts::-->>
1.Polymorphism
2.Inheritence
3.Abstract
4.Encapsulation
Is This Answer Correct ? | 133 Yes | 31 No |
Answer / sivabalaselvamani
1)Object-Instance of the class
2)Classes-Combination of Data members and member functions
3)Data Abstraction-Abstracting the data and functions from
unwanted users.
4)Data Encapsulation-Wrapping up of Data members and member
functions.
5)Inheritance-Passing the values from one object to anther
object.
6)Message Passing-Messages can possible from one object to
anther object
7)Polymorphism-its like function over loading.
Poly-Many, morphism-Forms
8)Robust and Securisam-its for security purpose
Is This Answer Correct ? | 151 Yes | 63 No |
Answer / anumohan.mc
there are 4 types of oops concepts.
they are.
Encapsulation
Abstraction
Inheritance
Polymorphism
Is This Answer Correct ? | 77 Yes | 26 No |
Answer / azamkhan.pathan
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 definr\ed as the seperation of unnecessary
details or explation from system requirments so as to
reduce the complaxities of understanding requirments.
4.ENCAPTULATION:
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.
Is This Answer Correct ? | 75 Yes | 24 No |
Answer / mathivanan
The following are Object Oriented Programming Concepts..
1. Class
2. Objcet
3. Reusability
4. Inheritance
5. Polymorphism
6. Data Encapsulation
7. Data Abstarction
8. Interfaces
9. Message Passing
Is This Answer Correct ? | 80 Yes | 33 No |
Answer / anurag
oops is the object oriented programming.
1)encapsulation
2)data abstraction
3)inheritance
3)polymorphism
4)dynamic binding
5)message communication
Is This Answer Correct ? | 76 Yes | 30 No |
Answer / irfan jafree
oops concepts means to provide security of our data.
oops concepts are following ways:
Encapsulation: wrapping up of data and member function
together into a single unit class.
Abstraction: Showing essential feature without background
detail.
Inheritance: The property of one class inherited property
of other class.
Polymorphism: it means many form .They are two forms as:
Operator overloading and Function overloading.
Is This Answer Correct ? | 95 Yes | 52 No |
Answer / krishnan
1 encapsulation - class
2 abstraction - object
3 inheritance
4 poymorphism - compile and run (static and dynamic binding)
5 message passinng
6 delegation
7 reusability
8 Interfaces
9 extensability
10 templates
11 scalability
12 associativity
13 persitence ......etc are OOPs Cocepts
Is This Answer Correct ? | 68 Yes | 36 No |
Answer / ammu
1encapsulation - class
2abstraction - object
3inheritance
4 poymorphism - compile and run (static and dynamic binding)
5 message passinng
6 delegation
7 reusability
8 Interfaces
9 extensability
10 templates
11 scalability
12 associativity
13 persitence ......etc are OOPs Cocepts
Is This Answer Correct ? | 61 Yes | 48 No |
Do you know about multiple inheritance?
write a C++ program for booking using constructor and destructor.
What is a friend function & its advantage?
if u write a class do u write Assignment operator and copy constructor
What is abstraction example?
what is cast operator?
What is late bound function call and early bound function call? Differentiate.
Question In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest. Question Submitted By :: Sunil Kumar I also faced this Question!! Rank Answer Posted By Re: In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest. Answer # 1 use copy constructors 0 Shanthila There is something to be taken care in destructor, in copy constructor, suppose the memory is assigned to the embedded member object pointer with the parameter passed value, but if some other objects of different class also are pointing to this memory, then if some one deletes the object then this class member pointer object will become dangling, or if the object is not deleted properly then there will be memory leak. Please suggest the design change required to handle or avoid this situation
what are three tenets of object orinted Systems?Why they call like that ? Please answer me. Advance thanks.
In which cases you use override and new base?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
write a c++ program to find maximum of two numbers using inline functions.