Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Why is it needed to create objects?

$
0
0
I mean why do we have to create an object?

1. class1 obj= new class1();

2. class1 obj;


can't we just create it like the 2nd method?

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>