Top "Class" questions

A template for creating new objects that describes the common state(s) and behavior(s). NOT TO BE CONFUSED WITH CSS CLASSES.

Nested classes' scope?

I'm trying to understand scope in nested classes in Python. Here is my example code: class OuterClass: outer_var = 1 class …

python class scope nested inner-classes
Using classes with the Arduino

I'm trying to use class objects with the Arduino, but I keep running into problems. All I want to do …

class object arduino
no default constructor exists for class

#include "Includes.h" enum BlowfishAlgorithm { ECB, CBC, CFB64, OFB64, }; class Blowfish { public: struct bf_key_st { unsigned long P[18]; unsigned …

c++ class constructor class-design default-constructor
Class extending more than one class Java?

I know that a class can implement more than one interface, but is it possible to extend more than one …

java class inheritance subclass multiple-inheritance
How do I correctly setup and teardown for my pytest class with tests?

I am using selenium for end to end testing and I can't get how to use setup_class and teardown_…

python class object pytest
Best way to load module/class from lib folder in Rails 3?

Since the latest Rails 3 release is not auto-loading modules and classes from lib anymore, what would be the best way …

ruby-on-rails class module autoload ruby-on-rails-3
difference between variables inside and outside of __init__()

Is there any difference at all between these classes besides the name? class WithClass (): def __init__(self): self.value = "Bob" …

python class oop constructor
In C#, can a class inherit from another class and an interface?

I want to know if a class can inherit from a class and an interface. The example code below doesn't …

c# class inheritance interface components
How do you find all subclasses of a given class in Java?

How does one go about and try to find all subclasses of a given class (or all implementors of a …

java class interface subclass
How to get names of classes inside a jar file?

I have a JAR file and I need to get the name of all classes inside this JAR file. How …

java file class jar classloader