So I figured I’d actually get in here and ask, just because my brain is trying to come to terms with oop.
Let me start off with, I haven’t a clue. But I think that I can explain it in a way that kinda sorta makes sense. Not going to be actual code, just something to read and follow along.
I take a idea, write it out, then write it in code. Used to do this for procedural so it makes sense to keep at least that much.
My brain is telling me that I need to write out a class in sort of a template fashion, ie functions, arrays, statements, if/else.
So I might have something like this, please elaborate if I’m wrong:
mysql query = select all from users where email=?
tableData arrays for name, email,whatever data
go try again
} return ← do I need to use return at the end of a function inside a class?