Answer Posted / suresh
swap(a,b) a^=b^=a^=b;
| Is This Answer Correct ? | 12 Yes | 3 No |
Post New Answer View All Answers
What is purpose of inheritance?
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
What is interface? When and where is it used?
State what is encapsulation and friend function?
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?
What is overloading in oop?
Is this job good for future? can do this job post grduate student?
What does no cap mean?
Can destructor be overloaded?
What is oops?what is its use in software engineering?
How do you define a class in oop?
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.
How to hide the base class functionality in Inheritance?
What is oops and why we use oops?
How Do you Code Composition and Aggregation in C++ ?