what is difference between objects and function

Answers were Sorted based on User's Feedback



what is difference between objects and function..

Answer / jothi basu.m

sir... my answer is objects contains some number of function
and constructors but functions does not contain objects

Is This Answer Correct ?    7 Yes 1 No

what is difference between objects and function..

Answer / saurabh sharma

with the help of object we can call the function of the
class .and with the help of function we can reduce the
redundency.

Is This Answer Correct ?    4 Yes 0 No

what is difference between objects and function..

Answer / rajdeep

object is the part of class.if there is no member function is initialize in function then we can call the function without object.Object always store in heap and function alway store in stack.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More OOPS Interview Questions

write string class as your own class in java without using any built-in function

0 Answers  


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.

0 Answers  


Whats oop mean?

0 Answers  


#include <iostream> using namespace std; int main() { int a = 3; int c[5][5]; for (int x=0;x<5;x++) { for (int y=0;y<5;y++) { c[x][y] = x*y; } } cout << c[a][2]; }

1 Answers  


Why u change company?

12 Answers   BOB Technologies,






write a program to print * * * * * *

2 Answers  


what is ns string? what is ns array?

1 Answers  


who is the father of OPPS

4 Answers   Infosys, TCS,


What is sub classing in c++?

1 Answers  


What is polymorphism programming?

0 Answers  


Which keyword is written to use a variable declared in one class in the other class?

5 Answers   TCS,


What are benefits of oop?

0 Answers  


Categories