So, I'm writing some code for practice and I've come to a point where I want to make a function where I can check a class for objects made from it and then, be able to use the methods and/or data fields I've written on the objects
Like, let me use a kind of blunt example
Dog.CheckForObjectsOfSameClass();
I've tried using a static number to refer to to then refer to the parent of such data, but I can't find a command for that either.
I would post the code I've tried to use before, but it would just make this the more confusing.
Thanks in advance for any answer that can help me solve this doubt