Gang Of Coders
Home
About Us
Contact Us
All Class Solutions on Gang of Coders
Total of 463 Class Solutions
Get method's arguments?
Php
Class
Object
Methods
Arguments
A list of multiple data types?
C#
Class
List
How to create two classes in C++ which use each other as data?
C++
Class
Pointers
Header Files
Set Font Color, Font Face and Font Size in PHPExcel
Php
Class
Phpexcel
When is upcasting illegal in C++?
C++
Class
Base
Derived
Downcast
Return from initializer without initializing all stored properties
Ios
Class
Swift
Swift: Get all subviews of a specific type and add to an array
Ios
Arrays
Swift
Class
Subview
C++ class header files organization
C++
Class
File
Header
Organization
How can I use the java for each loop with custom classes?
Java
Class
Foreach
Retrieving a c++ class name programmatically
C++
Class
Macros
overriding bool() for custom class
Python
Class
Casting
Boolean
Python 2.x
Purpose of PHP constructors
Php
Class
Oop
Constructor
How to properly document S4 class slots using Roxygen2?
Class
R
S4
Slot
Roxygen2
Difference between java class and jar
Java
Class
Jar
-[MyClassName copyWithZone:] unrecognized selector sent to instance
Iphone
Objective C
Class
Crash
Copy
c++ issue with function overloading in an inherited class
C++
Class
Inheritance
Overloading
Creating a class object in c++
C++
Class
jQuery select child element by class with unknown path
Jquery
Class
Html
Selector
Css Selectors
Error when calling the metaclass bases: function() argument 1 must be code, not str
Python
Class
Inheritance
Metaclass
Can I get all methods of a class?
Java
Class
Methods
Determine if two Java objects are of the same class
Java
Class
Comparison
Why can't a top level class be static in Java?
Java
Class
Static
What makes a user-defined class unhashable?
Python
Class
Python 3.x
User Defined-Types
Hashable
Use :hover to modify the css of another class?
Javascript
Css
Class
Hover
Why doesn't JavaScript ES6 support multi-constructor classes?
Javascript
Class
Constructor
Ecmascript 6
Redefine Class Methods or Class
Php
Class
Methods
Redefine
Should I seal all classes I know shouldn't ever be used as a base class?
C#
Coding Style
Class
Sealed
Can an element have both an id and a class?
Html
Css
Class
Why do I get an error instantiating an interface?
C#
Oop
Class
Interface
Instantiation
Java: avoid checking for null in nested classes (Deep Null checking)
Java
Class
Null
Ternary
What Exception subclasses are built into PHP?
Php
Class
Exception
Exception Handling
Why do C++ classes without member variables occupy space?
C++
Class
Sizeof
Predicate
How do you create a static class in C++?
C++
Oop
Class
Syntax
Static
What's the difference between entity and class?
Oop
Class
Entity
Elgg
Are classes in Python in different files?
Python
Class
Naming Conventions
__init__ and arguments in Python
Python
Class
Oop
Instance
What is the purpose of the word 'self'?
Python
Class
Oop
Self
In Java, can we divide a class into multiple files
Java
Class
Python - Should I put my helper functions inside or outside the class?
Python
Class
Pylint
What are classes, references, and objects?
Java
Oop
Class
Object
Reference
PHP check for instance of DateTime?
Php
Class
Instance
Instanceof
Isinstance
How do you hide labels in a form class in symfony2?
Php
Forms
Class
Symfony
Dynamic class in Angular.js
Class
Dynamic
Angularjs
Can't set attribute for subclasses of namedtuple
Python
Class
Python 3.x
Namedtuple
How to create a utility class correctly
Python
Class
How to declare a static attribute in Python?
Python
Class
Static
Attributes
c# - How to iterate through classes fields and set properties
C#
Class
Properties
Set
Field
How do you determine the size of an object in C++?
C++
Class
Memory
Size
Memory Management
Where is the Python documentation for the special methods? (__init__, __new__, __len__, ...)
Python
Class
Magic Methods
Possibilities for Python classes organized across files?
Python
Class
Project Structure
jQuery: selector (classname with space)
Jquery
Class
Jquery Selectors
Why doesn't Scala have static members inside a class?
Class
Scala
Static
Language Design
Static Members
Java generics - Make Generic to extends 2 interfaces
Java
Class
Generics
Interface
How to initialize static members in the header
C++
Class
Static Members
Confusing output from String.split
Java
Regex
String
Class
Core
How do I remove code duplication between similar const and non-const member functions?
C++
Class
Constants
Code Duplication
C++ Faq
Pointer to class data member "::*"
C++
Class
Pointers
C++ Faq
I can't reach any class member from a nested class in Kotlin
Class
Kotlin
Scope
Member
Div's class vs id
Css
Class
Xhtml
What is the difference between Integer and int in Java?
Java
Class
Int
Calling base class method in Python
Python
Class
Method to dynamically load java class files
Java
Class
Reflection
Dynamic
Load
Returning a value in constructor function of a class
Php
Oop
Class
Constructor
Accessing Class Properties with Spaces
Php
Oop
Class
Codeigniter
Properties
Is there a way to get a list of all classes from a .dex file?
Java
Android
Class
Dex
Dx
Call-time pass-by-reference has been removed
Php
Class
Function
Pass by-Reference
Public
Cannot find symbol assertEquals
Java
Class
Testing
Junit
Symbols
c++ "Incomplete type not allowed" error accessing class reference information (Circular dependency with forward declaration)
C++
Class
Reference
Forward Declaration
Create object from class in separate file
Python
Class
Object
Package
Calling one method from another within same class in Python
Python
Class
Methods
Event Handling
Python Watchdog
ReactJS - Call One Component Method From Another Component
Reactjs
Class
Methods
Call
Invoking a constructor in a 'with' statement
Python
Python 3.x
Class
With Statement
Can I use string concatenation to define a class CONST in PHP?
Php
Class
Constants
Get all of the Classes in the Classpath
Java
Reflection
Class
Python: deleting a class attribute in a subclass
Python
Class
Inheritance
Namespaces
Is there a way to implement methods like __len__ or __eq__ as classmethods?
Python
Class
How would I access variables from one class to another?
Python
Class
Variables
Swift Error: Editor placeholder in source file
Ios
Swift
Class
How to get button groups that span the full width of a parent in Bootstrap?
Html
Css
Twitter Bootstrap
Class
Buttongroup
When to use Class or Interface in Angular project?
Angular
Typescript
Class
Model
When should you use a class vs a struct in C++?
C++
Oop
Class
Struct
Ooad
Python function overloading
Python
Class
Oop
Overloading
Multiple Dispatch
How to use Class<T> in Java?
Java
Templates
Class
Generics
Find a class somewhere inside dozens of JAR files?
Java
Class
Jar
Project Structure
Text Search
Select distinct using linq
C#
Linq
List
Class
Best way to load module/class from lib folder in Rails 3?
Ruby on-Rails
Class
Module
Autoload
Ruby on-Rails-3
difference between variables inside and outside of __init__()
Python
Class
Oop
Constructor
Java: Multiple class declarations in one file
Java
Class
'POCO' definition
Class
Poco
Why use 'virtual' for class properties in Entity Framework model definitions?
C#
Class
Properties
Virtual
What is the difference between functions and classes to create reusable widgets?
Flutter
Function
Class
Dart
Flutter Widget
How do I get a PHP class constructor to call its parent's parent's constructor?
Php
Class
Oop
Inheritance
Constructor
Swift: Test class type in switch statement
Class
Swift
Switch Statement
What is the difference between old style and new style classes in Python?
Python
Class
Oop
Types
New Style-Class
How to create a custom string representation for a class object?
Python
Class
Java: how do I get a class literal from a generic type?
Java
Generics
Class
Literals
Check if a Class Object is subclass of another Class Object in Java
Java
Class
Reflection
Angularjs - ng-cloak/ng-show elements blink
Javascript
Class
Angularjs
Forward declaration of nested types/classes in C++
C++
Class
Nested
Forward Declaration
When to use Interface and Model in TypeScript / Angular
Angular
Typescript
Class
Interface
Static nested class in Java, why?
Java
Class
Static
Member
How do you find all subclasses of a given class in Java?
Java
Class
Interface
Subclass
AttributeError: 'datetime' module has no attribute 'strptime'
Python
Class
Python 2.7
How to initialize static variables
Php
Class
Static Members
Creating an array of objects in Java
Java
Arrays
Class
Separating class code into a header and cpp file
C++
Oop
Class
How do I use method overloading in Python?
Python
Class
Overloading
PHP check whether property exists in object or class
Php
Class
Variables
Object
Parameters
Final arguments in interface methods - what's the point?
Java
Class
Interface
Methods
Final
Call static methods from regular ES6 class methods
Javascript
Class
Static
Ecmascript 6
Es6 Class
How to get elements with multiple classes
Javascript
Class
Element
What is a clean "pythonic" way to implement multiple constructors?
Python
Class
Constructor
How can I determine whether a Java class is abstract by reflection
Java
Class
Abstract
Why can outer Java classes access inner class private members?
Java
Class
Private
Inner Classes
Private Members
What's the difference between struct and class in .NET?
.Net
Class
Struct
Value Type
Reference Type
Error inflating when extending a class
Java
Android
Xml
Class
Surfaceview
How do I use LINQ to obtain a unique list of properties from a list of objects?
Linq
Class
List
C# 3.0
Properties
Calling a class function inside of __init__
Python
Class
Scala equivalent of Java java.lang.Class<T> Object
Java
Class
Scala
IntelliJ IDEA jump from interface to implementing class in Java
Java
Class
Interface
Keyboard Shortcuts
Intellij Idea
How do I correctly setup and teardown for my pytest class with tests?
Python
Class
Object
Pytest
What does .class mean in Java?
Java
Class
Methods
Python decorators in classes
Python
Class
Decorator
Self
TypeScript static classes
Javascript
Class
Static
Typescript
Mockito match any class argument
Java
Class
Mockito
Arguments
Matcher
What is the difference between Type and Class?
Language Agnostic
Class
Programming Languages
Types
Glossary
How do I get an object's unqualified (short) class name?
Php
Class
Namespaces
Determine which JAR file a class is from
Java
Jar
Class
Classloader
How to loop through all the properties of a class?
.Net
vb.net
Class
Reflection
Properties
When to use static vs instantiated classes
Php
Oop
Class
What is the difference between "Class.forName()" and "Class.forName().newInstance()"?
Java
Class
Object
Instantiation
Can I extend a class using more than 1 class in PHP?
Php
Class
Oop
Extends
List all base classes in a hierarchy of given class?
Python
Class
Inheritance
Oop
Introspection
Declaring an enum within a class
C++
Class
Enums
Namespaces
Scope
Getting attributes of a class
Python
Python 2.7
Class
Attributes
UML class diagram enum
Class
Enums
Uml
Diagram
PHP Fatal error: Cannot redeclare class
Php
Class
Fatal Error
How to create a template function within a class? (C++)
C++
Templates
Function
Class
How enumerate all classes with custom class attribute?
C#
Class
Attributes
Custom Attributes
Enumerate
How do I prevent the modification of a private field in a class?
Java
Arrays
Oop
Class
How to avoid having class data shared among instances?
Python
Class
How do I pass a class as a parameter in Java?
Java
Class
Gwt
Parameters
PHP Fatal error: Using $this when not in object context
Php
Function
Class
Object
Fatal Error
instantiate a class from a variable in PHP?
Php
Class
Variables
Eval
How do you implement a class in C?
C
Class
Oop
Embedded
How do I call a parent class's method from a child class in Python?
Python
Class
Oop
Object
Inheritance
Visual Studio: How do I show all classes inherited from a base class?
Visual Studio
Class
Abstract Class
iOS difference between isKindOfClass and isMemberOfClass
Ios
Objective C
Swift
Class
Inheritance
How can I select item with class within a DIV?
Javascript
Jquery
Html
Class
Jquery Selectors
Difference between object and class in Scala
Scala
Class
Object
What is the difference between __init__ and __call__?
Python
Class
Oop
Object
Callable Object
How to print instances of a class using print()?
Python
Class
Printing
Object
How to implement private method in ES6 class with Traceur
Javascript
Class
Ecmascript 5
Ecmascript 6
Traceur
What techniques can be used to define a class in JavaScript, and what are their trade-offs?
Javascript
Oop
Class
Does Python have “private” variables in classes?
Python
Class
Private
Java synchronized static methods: lock on object or class
Java
Class
Static
Methods
Synchronized
Unresolved external symbol on static class members
C++
Class
Static
Members
Getting name of the class from an instance
Iphone
Objective C
Class
Instance
Classname
How to document class attributes in Python?
Python
Class
Documentation
Docstring
Class Attributes
Understanding Python super() with __init__() methods
Python
Class
Oop
Inheritance
Super
putting current class as return type annotation
Python
Python 3.x
Class
Annotations
Why can't we have static method in a (non-static) inner class (pre-Java 16)?
Java
Class
Static
Inner Classes
In C#, can a class inherit from another class and an interface?
C#
Class
Inheritance
Interface
Components
Why does calling a method in my derived class call the base class method?
C#
Class
Derived Class
Synthetic Class in Java
Java
Class
Synthetic
Unable to create Scala class on IntelliJ
Scala
Class
Intellij Idea
C# static class constructor
C#
Class
Static
Constructor
CKEditor automatically strips classes from div
Class
Html
Ckeditor
When to use static classes in C#
C#
Class
Static
class method generates "TypeError: ... got multiple values for keyword argument ..."
Python
Class
Python 2.7
Methods
Class does not conform NSObjectProtocol
Swift
Class
Target elements with multiple classes, within one rule
Css
Class
Css Selectors
How do I resolve ClassNotFoundException?
Java
Class
Classpath
Classnotfoundexception
When use a interface or class in Typescript
Typescript
Class
Interface
Strong Typing
How to return a value from __init__ in Python?
Python
Class
Init
Why do we use __init__ in Python classes?
Python
Class
Java: Static Class?
Java
Class
Oop
Static
Utility
Python: Bind an Unbound Method?
Python
Class
Methods
Bind
Instance variables vs. class variables in Python
Python
Class
Variables
Static
Member
Can we instantiate an abstract class?
Java
Oop
Class
Object
Abstract
How can I open Java .class files in a human-readable way?
Java
Windows
Class
Applet
ruby inheritance vs mixins
Ruby
Class
Inheritance
Module
Mixins
instanceof Vs getClass( )
Java
Class
Instanceof
How to get names of classes inside a jar file?
Java
File
Class
Jar
Classloader
Nested or Inner Class in PHP
Php
Class
Oop
Nested
Inner Classes
Why is enum class preferred over plain enum?
C++
Class
Enums
C++ Faq
How to update a mongo record using Rogue with MongoCaseClassField when case class contains a scala Enumeration
Mongodb
Class
Scala
Record
Lift
Python class definition syntax
Python
Class
Defining an abstract class without any abstract methods
Java
Class
Inheritance
Methods
Abstract
How do I implement __getattribute__ without an infinite recursion error?
Python
Class
Getattr
What is ::class in PHP?
Php
Class
Laravel
C/C++ Struct vs Class
C++
Class
Struct
Finding the PHP File (at run time) where a Class was Defined
Php
Reflection
Class
What is the difference between Class and Klass in ruby?
Ruby
Class
Kotlin: Equivalent of getClass() for KClass
Java
Class
Kotlin
Calling a base class's classmethod in Python
Python
Class
Overriding
Class Method
Namespace and class with the same name?
C#
Class
Namespaces
How to Select Element That Does Not have Specific Class
Javascript
Html
Class
How to synchronize a static variable among threads running different instances of a class in Java?
Java
Multithreading
Synchronization
Class
Object
Should I use a class or dictionary?
Python
Oop
Class
Dictionary
Java: Class.this
Java
Class
This
Creating an instance of class
C++
Class
Constructor
Difference between class and type
Java
Class
Types
What does new self(); mean in PHP?
Php
Class
Self
What is the difference between an interface and a class, and why I should use an interface when I can implement the methods directly in the class?
C#
Class
Oop
Interface
Abstraction
How do I get the filepath for a class in Python?
Python
Class
Introspection
What does the variable $this mean in PHP?
Php
Class
Oop
This
Nested classes' scope?
Python
Class
Scope
Nested
Inner Classes
Static class variables and methods in Python
Python
Class
Oop
Static
Class Variables
How do I create a custom iOS view class and instantiate multiple copies of it (in IB)?
Ios
Xcode
Class
Uiview
Uiviewcontroller
How to extend a class without having to use super in ES6?
Javascript
Class
Inheritance
Ecmascript 6
Can a java file have more than one class?
Java
Class
Use of class definitions inside a method in Java
Java
Class
Local Class
Get name of current class?
Python
Class
When is it appropriate to use C# partial classes?
C#
Class
Architecture
Calling a function within a Class method?
Php
Function
Class
Methods
Call
What is this: [Ljava.lang.Object;?
Java
Arrays
Class
Tostring
jquery, find next element by class
Jquery
Class
Element
Next
How to extend a class in python?
Python
Class
Interface
What exactly is a "Special Class"?
C#
Class
Generics
Generic Constraints
Difference between interfaces and classes in Typescript
Angular
Typescript
Class
Interface
Model
What is mattr_accessor in a Rails module?
Ruby on-Rails
Ruby
Class
Module
Activesupport
C++: What is the size of an object of an empty class?
C++
Class
Object
How can I dynamically create derived classes from a base class
Python
Class
Inheritance
How can I access an internal class from an external assembly?
C#
Class
What's the difference between integer class and numeric class in R
R
Class
Object
Integer
Numeric
How to override the properties of a CSS class using another CSS class
Css
Class
Overriding
Is passing a C++ object into its own constructor legal?
C++
Class
Constructor
Language Lawyer
Undefined Behavior
What is java pojo class, java bean, normal class?
Java
Class
Javabeans
Pojo
How to read the value of a private field from a different class in Java?
Java
Class
Reflection
Field
Private
ES6 class variable alternatives
Javascript
Class
Ecmascript 6
Get an object properties list in Objective-C
Objective C
Class
Properties
Attributes
Introspection
Automatically initialize instance variables?
Python
Class
Initialization List
.Contains() on a list of custom class objects
C#
List
Class
Contains
Making a python user-defined class sortable, hashable
Python
Class
Sorting
Hash
Magic Methods
php static function
Php
Class
Static
Member
Splitting templated C++ classes into .hpp/.cpp files--is it possible?
C++
Class
Templates
Header
Linker
'this' is undefined in JavaScript class methods
Javascript
Class
Prototype
Why Choose Struct Over Class?
Swift
Class
Struct
Design Principles
What are getters and setters for in ECMAScript 6 classes?
Javascript
Class
Ecmascript 6
Getter
Setter
Class constructor type in typescript?
Class
Typescript
Types
Constructor
What is the purpose of python's inner classes?
Python
Class
Oop
Language Features
What is the difference between a.getClass() and A.class in Java?
Java
Class
Reflection
The difference between Classes, Objects, and Instances
Java
Class
Object
Instance
Private properties in JavaScript ES6 classes
Javascript
Class
Ecmascript 6
Private Members
Es2022
What are public, private and protected in object oriented programming?
Class
Oop
Definition
Access Modifiers
How should I declare default values for instance variables in Python?
Python
Class
Oop
Static class initializer in PHP
Php
Class
Static
Constructor
Initializer
Why can a class not be defined as protected?
Java
Class
Protected
Does C++11 have C#-style properties?
C#
C++
Class
C++11
Does python have an equivalent to Java Class.forName()?
Java
Python
Class
Instantiation
What is the __dict__.__dict__ attribute of a Python class?
Python
Class
Metaprogramming
Magic Methods
'namespace' but is used like a 'type'
C#
Class
Namespaces
Static constant string (class member)
C++
String
Class
Static
Constants
Why/when should you use nested classes in .net? Or shouldn't you?
.Net
Class
Nested
Fxcop
How do I check if an object's type is a particular subclass in C++?
C++
Class
Subclass
Identification
Why can't a "Class" variable be passed to instanceof?
Java
Class
Instanceof
When should I use 'self' over '$this'?
Php
Class
Oop
Scope
Why is a class __dict__ a mappingproxy?
Python
Python 3.x
Class
Dictionary
Python Internals
Remove all classes except one
Javascript
Jquery
Class
Addclass
Removeclass
Object vs Class vs Function
Javascript
Class
Oop
Is it possible to overload Python assignment?
Python
Class
Methods
Assignment Operator
Magic Methods
Tools for creating Class Diagrams
Class
Diagram
How to getElementByClass instead of GetElementById with JavaScript?
Javascript
Class
Toggle
Getelementbyid
Getelementsbyclassname
JavaScript CSS how to add and remove multiple CSS classes to an element
Javascript
Html
Css
Class
Append
How can I use cout << myclass
C++
Class
Input
Integer
Prevent creating new attributes outside __init__
Python
Python 3.x
Class
Oop
Python Datamodel
Classes vs. Functions
Class
Function
Oop
member variable string gets treated as Tuple in Python
Python
Class
Can PHP instantiate an object from the name of the class as a string?
Php
Class
Object
Initialization
Use of .apply() with 'new' operator. Is this possible?
Javascript
Oop
Class
Inheritance
Constructor
What are the differences between struct and class in C++?
C++
Oop
Class
Struct
C++ Faq
How do I access Class member variables in Python?
Python
Class
Oop
Methods
Class Variables
Expression must have class type
C++
Class
New Operator
Getting Class type from String
Java
Class
Reflection
How to add property to object in PHP >= 5.3 strict mode without generating error
Php
Class
How to invoke the super constructor in Python?
Python
Class
Inheritance
Constructor
Superclass
java compiled classes contain dollar signs
Java
Class
Compilation
class overrule when two classes assigned to one div
Class
Css
Html
Using super with a class method
Python
Class
Object
Super
Class Method
How to properly set up a PDO connection
Php
Mysql
Sql
Class
Pdo
C++11 allows in-class initialization of non-static and non-const members. What changed?
C++
Class
C++11
Initialization
Class Members
Monkey patching a class in another module in Python
Python
Class
Unit Testing
Monkeypatching
List attributes of an object
Python
Class
Python 3.x
Static vs class functions/variables in Swift classes?
Function
Class
Swift
Variables
Static
How to assign multiple classes to an HTML container?
Html
Class
PHP - define constant inside a class
Php
Class
Constants
How to get all methods of a python class with given decorator
Python
Class
Methods
Decorator
Inspect
getting only name of the class Class.getName()
Java
Class
How to check if a Javascript Class inherits another (without creating an obj)?
Javascript
Class
Inheritance
Pass arguments to Constructor in VBA
Vba
Class
Oop
Constructor
Factory
Why can't Swift initializers call convenience initializers on their superclass?
Class
Initialization
Swift
Python: How do I make a subclass from a superclass?
Python
Class
Getting class by its name
Java
Android
Class
Creating a Zoom Effect on an image on hover using CSS?
Html
Class
Css
Why is the new Tuple type in .Net 4.0 a reference type (class) and not a value type (struct)
Performance
Class
Struct
.Net 4.0
Difference between a class and a module
Ruby
Class
Module
Creating a static class with no instances
Python
Class
Object
Static
The 'instanceof' operator behaves differently for interfaces and classes
Java
Class
Inheritance
Interface
Instanceof
How do I declare a model class in my Angular 2 component using TypeScript?
Class
Typescript
Angular
Compare two objects with .equals() and == operator
Java
Class
Object
Methods
Equals
Getting the name of a sub-class from within a super-class
Java
Class
Subclass
Super
Superclass
what is the Class object (java.lang.Class)?
Java
Class
Inheritance
Types and classes of variables
Class
R
Types
Class template with template class friend, what's really going on here?
C++
Class
Templates
Is it a bad practice to have multiple classes in the same file?
File
Class
Oop
Language Agnostic
Semicolon after class declaration braces
C++
Class
Oop
Declaration
Increment a Integer's int value?
Java
Class
Integer
Int
Saving and loading multiple objects in pickle file?
Python
Class
Object
Python 3.x
Pickle
Rails /lib modules and
Ruby on-Rails
Ruby
Class
Module
Is it possible to make abstract classes in Python?
Python
Class
Inheritance
Abstract Class
Abstract
Creating class instance properties from a dictionary?
Class
Python
Komodo
How to instantiate class from name string in Rails?
Ruby on-Rails
Ruby on-Rails-3
String
Class
Instantiation
How can I get the class name from a C++ object?
C++
Class
Java Generics With a Class & an Interface - Together
Java
Class
Generics
Bounded Wildcard
Define a method outside of class definition?
Python
Class
Methods
Which classes cannot be subclassed?
Python
Class
Inheritance
Python 3.x
Language Design
How to access internal class using Reflection
C#
Reflection
Class
Internal
Private members in Python
Python
Class
Oop
Member Variables
Define a struct inside a class in C++
C++
Class
Struct
C++ Abstract Class: constructor yes or no?
C++
Class
Constructor
Abstract
Dynamic Class Definition WITH a Class Name
Ruby
Class
Dynamic
Metaprogramming
What does "class :" mean in C++?
C++
Class
Colon
How can I access an array/object?
Php
Arrays
Class
Object
Properties
Valid characters in a Java class name
Java
Class
Unicode
Naming Conventions
Invalid Characters
How to create a read-only class property in Python?
Python
Class
Properties
CSS class and id with the same name
Css
Class
What's an example use case for a Python classmethod?
Python
Class
Class Method
How do I check if a class is defined?
Ruby
Ruby on-Rails-3
Class
Defined
What's the difference between a protocol extended from AnyObject and a class-only protocol?
Class
Swift
Protocols
Will an 'empty' constructor or destructor do the same thing as the generated one?
C++
Class
Oop
Constructor
Destructor
What does "Could not find or load main class" mean?
Java
Class
Main
What is the difference between static func and class func in Swift?
Class
Static
Swift
Is it bad practice for a class to have only static fields and methods?
Oop
Class
Static
Does JavaScript have classes?
Javascript
Oop
Class
What does stream mean? What are its characteristics?
C#
C++
Class
Stream
Terminology
Defining "boolness" of a class in python
Python
Python 2.7
Class
Boolean
Python 2.x
Change CSS class properties with jQuery
Jquery
Css
Ajax
Class
Properties
Printing all instances of a class
Python
Class
Struct with template variables in C++
C++
Class
Templates
Struct
Styling elements with a dot (.) in the class name
Css
Class
How should I deal with object hierarchies in a RESTful API?
Class
Object
Hierarchy
Rest
Is there a way to instantiate a class without calling __init__?
Python
Class
Constructor
Instantiation
javascript document.getElementsByClassName compatibility with IE
Javascript
Internet Explorer
Class
Internet Explorer-8
Classname
Accessing a class constant using a simple variable which contains the name of the constant
Php
Class
Variables
Constants
Python - self, no self and cls
Python
Class
Object
Self
What characters are allowed in C# class name?
C#
Class
Naming Conventions
Public and Internal members in an Internal class?
C#
Class
Public
Access Modifiers
Internal
C++: Can a struct inherit from a class?
C++
Class
Inheritance
Struct
To use a read-only property or a method?
C#
.Net
Class
Methods
Properties
Scala's sealed abstract vs abstract class
Scala
Class
Abstract
Sealed
Public Fields versus Automatic Properties
C#
Class
Properties
Field
Automatic Properties
How can I dynamically create class methods for a class in python
Python
Class
Metaprogramming
Static Methods
Setattr
PHP class instantiation. To use or not to use the parentheses?
Php
Oop
Class
Instantiation
How can I create an object and add attributes to it?
Python
Class
Object
Attributes
How to load Classes at runtime from a folder or JAR?
Java
Class
Reflection
Jar
Load
Attaching a decorator to all functions within a class
Python
Class
Oop
Decorator
Class Method
js: accessing scope of parent class
Javascript
Jquery
Class
Scope
Parent
Pros and cons of package private classes in Java?
Java
Class
Default
Modifier
Package Private
Importing a function from a class in another file?
Python
Class
Import
assigning class variable as default value to class method argument
Python
Class
Variable Assignment
Calling a class method raises a TypeError in Python
Python
Python 3.x
Class
Methods
default visibility of C++ class/struct members
C++
Class
Struct
Member
How to check programmatically if a type is a struct or a class?
C#
.Net
Class
Struct
Types
Partial class in different namespaces
C#
.Net
Class
Namespaces
Partial
The compiler is complaining about my default parameters?
C++
Class
Optional Parameters
Importing modules inside python class
Python
Class
Import
Module
Import a custom class in Java
Java
Class
Import
Is it bad practice to have my getter method change the stored value?
Class
Lazy Loading
Lazy Evaluation
Getter Setter
Declaring static constants in ES6 classes?
Javascript
Class
Constants
Ecmascript 6
How to check if a class already exists in Ruby
Ruby
Class
Accessing parent class in Backbone
Javascript
Oop
Class
Inheritance
backbone.js
Run Class methods in threads (python)
Python
Multithreading
Class
Methods
Python class @property: use setter but evade getter?
Python
Class
Properties
Timing
Why does .class not invoke the static block in a Class?
Java
Class
Static
Initialization
Why do Python classes inherit object?
Python
Class
Oop
Object
Inheritance
Difference between 'cls' and 'self' in Python classes?
Python
Class
Object
Terminology
Self
How can I easily get a Scala case class's name?
Scala
Class
Classname
How to get a distinct list from a List of objects?
C#
Linq
Class
List
Properties
Class that acts as mapping for **unpacking
Python
Class
Mapping
Argument Unpacking
Pointer to incomplete class type is not allowed
C++
List
Class
Pointers
Iterator
C# : Converting Base Class to Child Class
C#
Oop
Class
Dynamic static method call in PHP?
Php
Class
Function
Dynamic
What is a class in PHP?
Php
Class
Ruby craziness: Class vs Object?
Ruby
Class
Object
Advantage of set and get methods vs public variable
Java
Class
Methods
Private
Public
Passing variables, creating instances, self, The mechanics and usage of classes: need explanation
Python
Class
Call
Parameter Passing
Instance Variables
Class vs. Public Class
C#
Class
Public
How do I use a C# Class Library in a project?
C#
Class
When to use a Class vs. Function in PHP
Php
Function
Class
Using Python class as a data container
Python
Class
Dictionary
Struct
Check if class exists in Java classpath without running its static initializer?
Java
Class
Classloader
When would I want to make my private class static?
Java
Class
Static
Private
How to warn about class (name) deprecation
Python
Class
Backwards Compatibility
Deprecation Warning
inline function members inside a class
C++
Class
Methods
C# - Can publicly inherited methods be hidden (e.g. made private to derived class)
C#
Class
Derived
jQuery - get the first class only from a element
Javascript
Jquery
Class
How to get the second class name from element?
Jquery
Class
__new__ and __init__ in Python
Python
Class
Why can't we declare a namespace within a class?
C++
Class
Namespaces
Why we do create object instance from Interface instead of Class?
C#
Class
Interface
Derived Class
What are data classes and how are they different from common classes?
Python
Class
Python 3.7
Python Dataclasses
Get list of attributes of an object in an List
Java
Class
List
Collections
How to call getResources() from a class which has no context?
Android
Class
Background
Android Context
How to force/ensure class attributes are a specific type?
Python
Class
Variables
How can I call a function within a class?
Python
Class
Function
Call
ES6 modules: Export single class of static methods OR multiple individual methods
Javascript
Class
Module
Ecmascript 6
Extending Generic Classes
Java
Class
Generics
Subclassing
How can a class have a member of its own type, isn't this infinite recursion?
Java
Oop
Class
ES6 Dynamic class names
Javascript
Class
Ecmascript 6
How do you make a deep copy of an object?
Java
Class
Clone
How to get name of the constant?
Php
Class
Constants
Adding css class through aspx code behind
Css
Class
asp.net
Code Behind
Autoloader for functions
Php
Function
Class
Autoloader
Python calling method without 'self'
Python
Class
Self
What are the differences between the private keyword and private fields in TypeScript?
Typescript
Class
Private
Encapsulation
Class Fields
Are multiple classes in a single file recommended?
Python
Class
uml classdiagram constructor with parameters
Class
Structure
Diagram
Pseudocode
Assigning more than one class for one event
Jquery
Class
Events
Python Class Members
Python
Class
Member Variables
Julia: OOP or not
Class
Oop
Struct
Julia
Java - get the current class name?
Java
Class
Classname
Abstract variables in Java?
Java
Class
Variables
Abstract
Can you use static constants inside classes in PHP?
Php
Class
Variables
Syntax
Constants
'System.Configuration.ConfigurationSettings.AppSettings' is obsolete
C#
Visual Studio
Class
Class Library
class in R: S3 vs S4
Class
R
S4
Checking if a variable is initialized
C++
Class
Accessing non-visible classes with reflection
Java
Class
Reflection
Package Private
How to call Type Methods within an instance method
Ios
Class
Methods
Types
Swift
Can I include code into a PHP class?
Php
Oop
Class
Using two CSS classes on one element
Css
Class
array_map not working in classes
Php
Arrays
Class
Function
Array Map
Stubbing a method that takes Class<T> as parameter with Mockito
Java
Class
Generics
Mocking
Mockito
Could not find or load main class with a Jar File
Java
Class
Jar
Main
What is the difference between private and protected members of C++ classes?
C++
Class
Oop
Private
Protected
Using ES6 Classes as Angular 1.x directives
Javascript
Angularjs
Class
Angularjs Directive
Ecmascript 6
Why must I use the "this" keyword for forward references?
Java
Class
This
Forward Reference
C++ virtual function from constructor
C++
Oop
Class
Constructor
Virtual
Can you create instance properties dynamically in PHP?
Php
Design Patterns
Oop
Class
What is the difference between a concrete class and an abstract class?
C++
Oop
Class
Generic constraints, where T : struct and where T : class
C#
Generics
Class
Struct
Constraints
Multiple parameters in a List. How to create without a class?
C#
Class
List
What is the difference between class and instance variables?
Python
Class
Variables
Self
C++ variable has initializer but incomplete type?
C++
Class
Compiler Construction
Create an instance of a class in ES6 with a dynamic name?
Javascript
Class
Dynamic
Ecmascript 6
Kotlin File vs Class. Whats the difference?
File
Class
Kotlin
Should I use nested classes in this case?
C++
Oop
Class
Nested Class
Is there a way to circumvent Python list.append() becoming progressively slower in a loop as the list grows?
Python
Class
List
Performance
Append
What is the default value for C++ class members
C++
Class
Struct
Default Value
Cast class into another class or convert class to another
C#
Casting
Class
Type Conversion
Organizing Python classes in modules and/or packages
Python
Class
Module
Package
How to define sealed class in C++?
C++
Class
Inheritance
Derived Class
Sealed
What is the difference between a class and a type in Scala (and Java)?
Java
Class
Scala
Types
Language Design
Python super method and calling alternatives
Python
Class
Super
Import statement inside class/function definition - is it a good idea?
Python
Function
Class
Import
correct way to define class variables in Python
Python
Class
Attributes
Defining an object without calling its constructor in C++
C++
Class
Object
Constructor
How can I store a lambda expression as a field of a class in C++11?
C++
Class
Lambda
C++11
Field
What are the purposes of inner classes
Java
Oop
Class
Inner Classes
static const vs. const static
C++
Class
Constants
Python calling method in class
Python
Class
Methods
Passing a class with type parameter as type parameter for generic method in Java
Java
Class
Generics
undefined reference to 'vtable for class' constructor
C++
Class
Constructor