what is the logic to count number of objects created implicitly and explicitly inside the same program..Please help.
Jump to Post
Start with the number zero, and each time an object is created, add one.
That's the logic.
If you mean something like creating a class, and counting how many times an object of that class is created, put the functionality to do the counting inside the constructor and make the …
All 6 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.