Program that Counters # of Objects in a Given Program?

Hi guys!

I have been given an assignment to develop a program that counts the number objects in a program. I already developed a program that counts LOC in a program and comments things such as comments, start, begin, etc. However I am confused how to approach this program.

Just wondering if anyone would give me a little hint to get my started. All I need to know is how I might go about identifying classes (objects) in a program in order to count them only.

Would appreciate it!

You could make a counter class with a static count and use it as a parent class for the other classes maybe.
Topic archived. No new replies allowed.