143.what is oops principles?
Answers were Sorted based on User's Feedback
Answer / suddapally.chinny
the main concepts in OOP are:
*DATA ABSTRACTION
*DATA ENCAPSULATION
*POLYMORPHISM
*INHERITANCE
Is This Answer Correct ? | 19 Yes | 1 No |
Answer / ayswarya
Its a Principle in which the programming module must depends
on the object of that class and not the functions.. inter
communication of classes will occur through objects of the
classes only and not directly..
It has 5 properties
1. Class and Object(methods and data members in class and
objects meant for using those methods and data members)
s. Encapsulation and Abstraction (Data Hiding and wrapping
concept)
3. Inheritance (Software re-usability- use of existing code
in our new project)
4. Polymorphism (different functions taking different
forms(values) at different situations)
5. Data Binding
Is This Answer Correct ? | 6 Yes | 0 No |
Answer / arya
the main principles of of oops are :-
-inheritance
-polymorphism
-reusuability
-data abstraction
-encapsulation
-class
-function
Is This Answer Correct ? | 6 Yes | 3 No |
Answer / deepti
ABSTRACTION POLYMORPHISM INHERITANCE AND ENCAPSULATION.
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / amit
oops concept is to implement the real world concept in
progarmig world like
Abstrction(hide the compexity)
Encapsulation(Wrap in single unit,to achive the abstraction)
Polymorfism(one to many form)
Inheritence(inhancment,reuseability)
etc
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / abi
principles are:
inheritance(reusability)
classes & objects
message passing
polymorphism
data abstraction & encapsulation
dynamic binding
Is This Answer Correct ? | 3 Yes | 2 No |
Answer / saranya
Objects
Classes
Data encapsulation, abstraction
Inheritance
Polymorphism
Dynamic binding
Message passing
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / chinnababu
oops concepts are:
1.Abstraction
2.Encapsulation
3.polymorphism
4.Inheritance
Is This Answer Correct ? | 0 Yes | 1 No |
Answer / prasad
DATA ABSTRACTION AND ENCAPSULATION
POLYMORPHISM
INHERITANCE
MESSAGE PASSING
Is This Answer Correct ? | 0 Yes | 3 No |
Answer / vijayan
object
class
message passing
inheritance
reuseablity
polymorphism
Is This Answer Correct ? | 0 Yes | 4 No |
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
where is memory for struct allocated? where is memory for class-object allocated? I replied for struct in stack and for class-object in heap. THen he asked if class has struct member variable what happens.class on heap and what about struct in that class? couldnt ans :( :-?
What is polymorphism explain its types?
Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.
What is an example of genetic polymorphism?
How to overload postfix operator in c++
What are the features of oop?
What is oops?what is its use in software engineering?
You have one base class virtual function how will call that function from derived class?
What is the diamond problem in inheritance?
create a class complex having real and imaginary part of a complex no. as a data member. overload the binary operators(+,- and *) to perform the operations on complex no. objects. overload binary operator using friend function.
2 Answers CTS, Delhi University,
why c++ is a highlevel language
3 Answers Satyam, Tech Mahindra,