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 |
What is object and example?
What is Iteration Hierarchy? What is what is Object behavioral concept?
#include <string.h> #include <stdio.h> #include <stdlib.h> #include <conio.h> void select(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); select(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void select(char *items, int count) { register int a, b, c; int exchange; char t; for(a = 0; a < count-1; ++a) { exchange = 0; c = a; t = items[ a ]; for(b = a + 1; b < count; ++b) { if(items[ b ] < t) { c = b; t = items[ b ]; exchange = 1; } } if(exchange) { items[ c ] = items[ a ]; items[ a ] = t; } } } design an algorithm for Selection Sort
Why is object oriented programming so hard?
What is the difference between a constructor and a destructor?
assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).
Should you protect the global data in threads? Why or why not?
What is overloading in oops?
which structured data type is not used in c++? 1.union 2.structure 3.string 4.boolean
What does <> mean pseudocode?
What do you mean by public, private, protected and friendly?
what is the main difference between c and c++?
386 Answers AZTEC, B.Tech, CMC, College School Exams Tests, HCL, IBM, ITM, Khalsa Institute, Microsoft, Oracle, Sanjeevni Institute, TCS, Tech Mahindra, Wipro, ZeOmega,