k, i have looked through 2 different books and my instructor doesnt have the greatest knack for explaining things.
Can anyone briefly explain the point of using a constructor within a class? Is it just a required piece of code needed for classes? Or is it just an attempt at confusing the compiler for giving such incredibly odd and annoying error messages?
i understand that a constructor is a member of the class that has the same name but does not return anything, but i cant find out why a constructor is necessary. any help is appreciated.