Can two objects have same class name?

You can have one single object inside main and add will be called using that which in turn difference . Note: You can also make add and difference as static so you do not need any object at all.

Sizin İçin Seçtik  What is the use of getClass () in Java?

Leave a Reply

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

Can two objects have same class name?

You can have one single object inside main and add will be called using that which in turn difference . Note: You can also make add and difference as static so you do not need any object at all.

Sizin İçin Seçtik  Araç aldıktan sonra ne yapılır?

Leave a Reply

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