Can you use a class as a parameter?

Yes, you can pass the object of a class inside a method as an argument . Yes you can. But the class itself doesn’t hold any value and it’s just a schema. You need to create an instance (instantiate) of the class and pass the same as an argument to any method (function).

Sizin İçin Seçtik  Which is the best emulator for iOS?

Leave a Reply

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