Can class objects be passed as function arguments?


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

Post New Answer

More C++ General Interview Questions

What is the c++ code?

0 Answers  


Please explain class & object in c++?

0 Answers  


Explain what is class definition in c++ ?

0 Answers  


What is a syntax in c++?

0 Answers  


Can recursive program be written in C++?

0 Answers  






Why is c++ still used?

0 Answers  


class A { public: void f(); protected: A() {} A(const A&){} }; Examine the class declaration shown above. Why are the default and copy constructors declared as protected? 1. To ensure that A cannot be created via new by a more derived class 2. To ensure that A cannot be copied 3. To ensure that A cannot be used as a base class except when public inheritance has been used 4. To ensure that A cannot be created/copied outside the inheritance chain 5. To ensure that A cannot be instantiated as a static variable

1 Answers  


What is pure virtual function? Or what is abstract class?

0 Answers  


What are the different types of comments allowed in c++?

0 Answers  


string somestring ; Which of the following choices will convert a standard C++ string object "somestring" to a C string? a) Copy.somestring () ; b) somestring.c_str () c) &somestring [1] d) std::cstring (somestring) e) (char *) somestring

1 Answers   Quark,


what are difference between c and c++?

9 Answers   Accenture,


Explain data encapsulation?

0 Answers  


Categories