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.

How to call a Parent Class's method from Child Class in Python?

When creating a simple object hierarchy in Python, I'd like to be able to invoke methods of the parent class …

python class oop object inheritance
How do I resolve ClassNotFoundException?

I am trying to run a Java application, but getting this error: java.lang.ClassNotFoundException: After the colon comes the …

java class classpath classnotfoundexception
How to assign multiple classes to an HTML container?

Is it possible to assign multiple classes to a single HTML container? Something like: <article class="column, wrapper">

html class
Java - get the current class name?

All I am trying to do is to get the current class name, and java appends a useless non-sense $1 to …

java class classname
How to use Class<T> in Java?

There's a good discussion of Generics and what they really do behind the scenes over at this question, so we …

java templates class generics
Does Python have “private” variables in classes?

I'm coming from the Java world and reading Bruce Eckels' Python 3 Patterns, Recipes and Idioms. While reading about classes, it …

python class private
Private and Protected Members : C++

Can someone enlighten me as to the difference between private and protected members in classes? I understand from best practice …

c++ class mfc
When to use static classes in C#

Here's what MSDN has to say under When to Use Static Classes: static class CompanyInfo { public static string GetCompanyName() { return "…

c# class static
PHP Fatal error: Using $this when not in object context

I've got a problem: I'm writing a new WebApp without a Framework. In my index.php I'm using: require_once(…

php function class object fatal-error
How can I open Java .class files in a human-readable way?

I'm trying to figure out what a Java applet's class file is doing under the hood. Opening it up with …

java windows class applet