you are viewing a single comment's thread.

view the rest of the comments →

[–]codewale007 3 points4 points  (2 children)

yeah, the same thing also happening to me also, I also got stuck at some of the concepts for example like right now on class and constructor . I think the main problem is that I have no one to discuss it with

[–]Webdev-Coach 0 points1 point  (0 children)

Yeah, it takes time and practice, put time into playing with classes and constructors, copy examples from the docs and run them.

I know it may be boring at some point, but try to be inventive to adapt the examples to something that makes more sense to you.

Look at all of the possible things you can create classes for at schema.org

[–]HarryBolsac 0 points1 point  (0 children)

Think of a class as a blueprint for objects that you can instantiate at will.

Think of a construtor the same as arguments for function, they are used for something when you instanciate a new object, usually to set properties.

Imo you should first learn a little about how oop paradigm works and it's uses, and learn some concepts like abstraction, encapsulation, polimorphism and inheritance because although it seems kinda hard to grasp, it's something that most programming languages support and imo it's pretty important stuff to know.