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  What is an array of objects C++?

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  Alaylı yazılımcı olunur mu?

Leave a Reply

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