Ok.. I have alot of experience with php and html ect.
I knew some c++ but never really gain experience and haven't practice in a while since I been working on a website.
I would like someone to explain to me what classes are used for. I did read what classes are on here bu still confused.
I am guessing class are ways to organize code. Like for example I make a class house.
this would mean any function in class house would be all functions and code for a house.
like door () would be open close lock ect.
am I somewhat right that class is like organizing code so if I were making a computer game I can have the house models and code to be under a house class??
I would like also someone to explain me about namespaces.
explain to me by just giving a example that would show a picture of what it's uses are for.