# Newest 'oop' Questions
Canonical: https://social-archive.org/arc/OyhHlkxzh9
Original URL: https://stackoverflow.com/questions/tagged/oop
Author: Artem Kushniryk Herasym, bungee1980, Roberto, aviiiii01, katarina zed, Rahul pawar, ciphermagi, systemOverview, CSGuy, Bumpyroadhill
Platform: web
Share mode: full
## Content
62,218 questions Score of -1 1 answer 192 views ## C++ compile error: 'Player' does not name a type when using one class inside another [duplicate] I'm building a small game in C++ with raylib. I have a Game class that owns a Player object and a screenWindow object. My goal is for screenWindow to access the same Player instance that is created in... [Artem Kushniryk Herasym](https://stackoverflow.com/users/31740940/artem-kushniryk-herasym) - reputation score 31 asked Jul 17 at 11:57 Score of 1 2 answers 150 views ## curl_close() deprecation in procedural PHP All of my old scripts are written procedural and in writing a new one I've learned that curl_close() is deprecated and that a curl object is closed automatically. But do I have to rewrite all that... [bungee1980](https://stackoverflow.com/users/17866323/bungee1980) - reputation score 171 asked Jul 16 at 23:13 Advice 0 votes 1 replies 107 views ## Differences between `INTERFACE` and `REFERENCE TO` type in TwinCAT PLC In short, what are the differences between using references and using interfaces for the purpose of 'linking' to other objects? E.g.: itfObj: I_FB_Myblock; // "I_FB_Myblock"... [Roberto](https://stackoverflow.com/users/4784914/roberto) - reputation score 1143 asked Jun 23 at 9:57 Best practices 1 vote 7 replies 229 views ## Why use Abstract Classes? How and why to use the abstract class? What problem does it actually solve? When I was studying about it I was only clear about a thing that when we create an abstract class there have to be a/some... [aviiiii01](https://stackoverflow.com/users/32865548/aviiiii01) - reputation score 1 asked Jun 22 at 14:39 Advice 1 vote 17 replies 248 views ## Why when I create object, the variable contains a reference to the object, not the object itself? Suppose I have var obj = new A(), why the designers of the language designed the language so that obj is reference or a pointer to object? why the language is not designed so that obj is the actual... [katarina zed](https://stackoverflow.com/users/32514744/katarina-zed) - reputation score 1 asked Jun 21 at 6:25 Best practices 2 votes 4 replies 172 views ## How to learn Java OOP in most effective and which resource to follow I want to learn OOP in Java, I have read topics in OOP, but not understanding how to apply them in programs. Actually, I have read just theory on W3 schools. How to do AND FROM WHERE TO LEARN which... [Rahul pawar](https://stackoverflow.com/users/32609128/rahul-pawar) - reputation score 1 asked Jun 21 at 1:55 Best practices 1 vote 16 replies 322 views ## Why shouldn't I use protected visibility? I've come across some academic writing that indicates that I should limit or avoid the use of protected visibility in inheritance. This is confusing to me. My understanding of the way inheritance... [ciphermagi](https://stackoverflow.com/users/1679148/ciphermagi) - reputation score 768 asked Jun 19 at 12:40 Best practices 0 votes 3 replies 100 views ## How to suggest movies that the user didn't see already in real time? I am building a simple school project, and the idea is that users form a group together, then an activity (for example movie activity), and then in that activity the app suggests movies for every... [systemOverview](https://stackoverflow.com/users/32724406/systemoverview) - reputation score 8 asked Jun 17 at 16:55 Best practices 1 vote 9 replies 221 views ## How to use better OOP for a Huffman Compressor So I refactored my Huffman program for better OOP practices. Now, I need to make an array of coded objects that represent a character and its // C++ program to implement huffman coding #include <... [CSGuy](https://stackoverflow.com/users/30853690/csguy) - reputation score 1 asked Jun 15 at 23:25 Score of 3 2 answers 185 views ## Compare 2 object lists and extract objects that are different in the two lists into their own list I am making an application where one of the things a user can do is add items to a product with an associated amount. Items, products, and the amount of times each item is used in a product are all... [Bumpyroadhill](https://stackoverflow.com/users/23516650/bumpyroadhill) - reputation score 91 asked Jun 12 at 14:13 Advice 1 vote 2 replies 95 views ## in Dart why does String start with capital letters and not the other types in java the primitives types like int, boolean, double,... are in lowercase and String is an object that's why it start with a capital letter(from what I know). But why is it the case in dart,... [Jotunheim](https://stackoverflow.com/users/32823148/jotunheim) - reputation score 1 asked Jun 10 at 12:51 Advice 2 votes 4 replies 139 views ## Order of loading classes in PHP Please explain the mechanism of loading classes in PHP, and why the first example does not cause an error, but the second does? From documentation: Classes should be defined before instantiation (and... [Jarry Roxwell](https://stackoverflow.com/users/19091729/jarry-roxwell) - reputation score 129 asked Jun 5 at 8:47 Advice 0 votes 9 replies 233 views ## Why we need Classes and Object when be have Functions? Why do we need Classes and Objects when have functions where be can create functions for each and everything. In Python we have modules and packages we can work so why actually we need the Classes... [DEV GUPTA](https://stackoverflow.com/users/23728561/dev-gupta) - reputation score 1 asked Jun 3 at 18:38 Best practices 0 votes 3 replies 121 views ## Filtering packets using recvfrom() and MSG_PEEK I've got a UdpPeer class: class UdpPeer { struct sockaddr_storage remoteAddr; socklen_t addrlen; public: UdpPeer(struct sockaddr_storage const& addr, socklen_t addr); void... [pastor](https://stackoverflow.com/users/31469405/pastor) - reputation score 91 asked May 25 at 15:10 Score of 1 1 answer 71 views ## Object of classes, using "extends" to reference another class in the same object https://jsfiddle.net/jenqhg3o/1/ A = { Foo: class { }, Bar: class extends A.Foo { constructor (){ console.log("test") } } } var a = new A.Bar() Is extending in this... user32544274
## Media
1. image: https://social-archiver-api.social-archive.org/media/archives/arc/qvKczgQk5B/media/0.png
