Find out the instances of a particular class

I think this is a weird question, but maybe some of you would be able to answer it. I am looking for importing a library from python or using a plugin in Vim that will allow me to find out where are located the instances of a particular class or acc...
more »

2017-03-19 22:03 (0) Answers

Read objects from a .class file

I'm trying to use Javassist in order to get all the instantiated objects in a .class file, however, I can't seem to find the way to do so, so I ask, is there any way to get, for example, an array of Objects from a .class file? Here is the class from...
more »

2017-03-19 19:03 (1) Answers

error #1009 addChld() as3 with loop

when i try to addChild my class it says "Cannot access a property or method of a null object reference. at class_obj() at Main()" error #1009 i need to know how to have a class that has a gameloop for testing things like collision and stuff please h...
more »

2017-03-19 17:03 (2) Answers

Operator not defined for list of custom class

I have created a custom class Node and have defined the = operator for it. However, upon attempting to use the = operator with a List(Of Node), I have been told that the = operator is not defined for the List(Of Node). I suppose I assumed that as I...
more »

2017-03-19 16:03 (0) Answers

About Inheritance and super()

Given the code: class Character(): def __init__(self, name): = name = 50 self.damage = 10 class Warrior(Character): def __init__(self, name, weapon, armor): super(Character).__init__() ...
more »

2017-03-19 12:03 (1) Answers

Scala type constraint

I have the following classes case class A(vl: Int) case class B(name: String) now I want to create a class like this case class Cllction[T](objs: Seq[T]) But the thing is I want to restrict to be only either A or B. Is it possible to do so in S...
more »

2017-03-19 09:03 (1) Answers

Printing and Formatting an Instance

I am trying to Define a str method for this class here so that when an instance of class Student is printed, it prints something of the format: My name is ___. I've been in college for __ years and I've written __ programs. Below the correct phrasing...
more »

2017-03-19 03:03 (4) Answers

Doubly-linked list implementation not working

I'm new to object-orientated programming and to this site. I've been working on this program for a university-project for quite a while (or at least I'm trying to). I have to create a program that deals with doubly-linked lists, to be more precise, ...
more »

2017-03-18 21:03 (1) Answers

Declaring two classes in the same compilation unit

I'm pretty new to Scala and would like to ask about conventions. I have the following classes: case class Cltn(msgs: Seq[Msg]) case class Msg(value: Int) Is it common to define this classes in the same compilation unit? Or this is not conventional...
more »

2017-03-18 18:03 (1) Answers Partial Bussines Logic Class

I have many classes on my application like Profile.cs, Post.Cs , Product.Cs and for database operations dbopertations.cs and businesslogic.cs For example (for one method) dboperations.cs inlcudes ` ` public static List<Post> GetPost() {...
more »

2017-03-18 17:03 (1) Answers

cannot instantiate abstract class c++

I have a problem with this code - this is taskData: static std::map<int8_t, std::vector<Task>> taskData; and there is a problem: taskData.emplace(pi::enumerations::taskManager::taskCategory_t::SECURITY, std::vector<Task>{Firefig...
more »

2017-03-18 10:03 (3) Answers

Not getting the tabbed layout

I want to show tabbed activity as a fragment, now i am not geting the tabbes , is there anyone who can check the code and correct me , coz for the past few days i was seeing this code to work this is my home xml code <?xml version="1.0" encod...
more »

2017-03-18 07:03 (1) Answers

Forcing Client to Close Object

I have made a custom class which comes complete with a .close()method. I was wondering how do I force the client to always call this method after using my object to ensure that the object appropriately closes and frees up any resources it was using? ...
more »

2017-03-17 22:03 (3) Answers

Intellij Main Class Always Changing

my question today is if there is a way for IntelliJ to build with the current class file I have Instead of always going into the configurations setting and changing the Main class from there. Picture :
more »

2017-03-17 22:03 (2) Answers

Convert this specific mysql bd class to mysqli

¿Can you please help me to fully convert this class to work with mysqli? It's a class working on an old system, I just want to make it work with mysqli without having to modify the existing code on all the system. I tried but with no success. ¡ T...
more »

2017-03-16 22:03 (1) Answers