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.

Android Call an method from another class

I know that this Question is repeated but I can't find the answer in Internet. I want to call a …

java android class android-activity call
C++ class forward declaration

When I try to compile this code, I get: 52 C:\Dev-Cpp\Projektyyy\strategy\Tiles.h invalid use of undefined type `…

c++ class forward-declaration
How to return a value from __init__ in Python?

I have a class with an __init__ function. How can I return an integer value from this function when an …

python class init
Why do I get an error instantiating an interface?

I have a class and an interface, and when I try to instantiate the interface, I get an error: Cannot …

c# oop class interface instantiation
C# importing class into another class doesn't work

I'm quite new to C#, and have made a class that I would like to use in my main class. …

c# class main
Valid characters in a Java class name

What characters are valid in a Java class name? What other rules govern Java class names (for instance, Java class …

java class unicode naming-conventions invalid-characters
What's the difference between integer class and numeric class in R

I want to preface this by saying I'm an absolute programming beginner, so please excuse how basic this question is. …

r class object integer numeric
Why am I getting this redefinition of class error?

Apologies for the code dump: gameObject.cpp: #include "gameObject.h" class gameObject { private: int x; int y; public: gameObject() { x = 0; …

c++ class redefinition
Struct with template variables in C++

I'm playing around with templates. I'm not trying to reinvent the std::vector, I'm trying to get a grasp of …

c++ class templates struct
Adding css class through aspx code behind

I am using aspx. If I have HTML as follows: <div id="classMe"></div> I am …

css class asp.net code-behind