what is difference between objects and function
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
write string class as your own class in java without using any built-in function
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.
Whats oop mean?
#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]; }
Why u change company?
write a program to print * * * * * *
what is ns string? what is ns array?
who is the father of OPPS
What is sub classing in c++?
What is polymorphism programming?
Which keyword is written to use a variable declared in one class in the other class?
What are benefits of oop?