Following are the class specifications:
class {int a};
class {int b};
Using friend funtion,calculate the max of two objects and
display it.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More OOPS Interview Questions

Out of 4 concepts, which 3 C++ Follow?

1 Answers   TCS,


#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

0 Answers  


Why polymorphism is used in oops?

0 Answers  


Give an example where we have to specifically use C programming language and C++ programming language cannot be used?

0 Answers   CAT,


Write an operator overloading program to write S3+=S2.

2 Answers  






What are the 4 main oop principles?

0 Answers  


What is overriding in oops?

0 Answers  


what is oops

4 Answers   NIIT,


c++ provides classes...and classes do what we want but why then strcut are used...if we say data hiding... it is also provided by c++ in structs then why to prefer clasess

1 Answers   HCL, TCS,


Why do we use virtual functions?

4 Answers  


what is the application of oops?

8 Answers   IBM,


How to use CMutex, CSemaphore in VC++ MFC

0 Answers   Persistent, TCS,


Categories