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.

What does "Could not find or load main class" mean?

A common problem that new Java developers experience is that their programs fail to run with the error message: Could …

java class main
Understanding Python super() with __init__() methods

I'm trying to understand the use of super(). From the looks of it, both child classes can be created, just …

python class oop inheritance super
Are static class variables possible in Python?

Is it possible to have static class variables or methods in Python? What syntax is required to do this?

python class oop static class-variables
What is the purpose of the word 'self'?

What is the purpose of the self word in Python? I understand it refers to the specific object created from …

python class oop self
How to print instances of a class using print()?

I am learning the ropes in Python. When I try to print an object of class Foobar using the print() …

python class printing object
Creating an array of objects in Java

I am new to Java and for the time created an array of objects in Java. I have a class …

java arrays class
When to use self over $this?

In PHP 5, what is the difference between using self and $this? When is each appropriate?

php class oop scope
Using two CSS classes on one element

What am I doing wrong here? I have a .social div, but on the first one I want zero padding …

css class
List attributes of an object

Is there a way to grab a list of attributes that exist on instances of a class? class new_class(): …

python class python-3.x
Select distinct using linq

I have a class list of class public class LinqTest { public int id { get; set; } public string value { get; set; } } …

c# linq list class