Can you pass an object as a parameter in C++?

In C++ we can pass class’s objects as arguments and also return them from a function the same way we pass and return other variables. No special keyword or header file is required to do so.

Sizin İçin Seçtik  Can we create array of objects?

Leave a Reply

Your email address will not be published. Required fields are marked *

Can you pass an object as a parameter in C++?

In C++ we can pass class’s objects as arguments and also return them from a function the same way we pass and return other variables. No special keyword or header file is required to do so.

Sizin İçin Seçtik  Can we create generic array in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *