What is the difference between pass by reference and pass by
value?
Answers were Sorted based on User's Feedback
Answer / simran
the argument passed by refrence must be a veriable.but in
passed by value may be a constant, averiable.
| Is This Answer Correct ? | 6 Yes | 10 No |
Answer / p suresh kumar
passing an object by value is defined by the copy
constructor of that object's class. This can make pass-by-
value an extremely expensive operation.
| Is This Answer Correct ? | 11 Yes | 18 No |
WHAT IS ABSTRUCT DATA TYPE ? PLEASE EXPLAIN IT.
why the memory allocated with new cant be freed using free()
What is encapsulation c#?
what is the difference b/w abstract and interface?
2 Answers Merrill Lynch, Schneider, Scio Healthcare,
What is object in oops?
What is this pointer in oop?
suppose A is a base class and B is the derved class. Both have a method foo which is defined as a virtual method in the base class. You have a pointer of classs B and you typecast it to A. Now when you call pointer->foo, which method gets called? The next part of the question is, how does the compiler know which method to call?
what is graphics
What is the difference between a constructor and a destructor?
what is the application of oops?
How to call a non virtual function in the derived class by using base class pointer
How do you answer polymorphism?