Total: 15 Posts
Posts of Tag: Class
The class attribute in HTML is used to define a class for one or more HTML elements. This way, a lot of elements can belong to the same class of elements and share the same style in the style sheet...Learn More
Example: Loading a Java Class at Runtime
Java isn't the most dynamic language around, but with some careful planning and flexibility you can make your programs a bit more dynamic by loading classes at runtime.
Guide to Apache Commons' StringUtils Class in Java
The Apache Commons library provides many new interfaces, implementations and classes that expand on the core Java Framework. It's one of the top t...Learn More
Formatting Strings with the Python Template Class
Python Templates are used to substitute data into strings. With Templates, we gain a heavily customizable interface for string substitution (or str...Learn More
C++ Object Slicing with Example
In this tutorial, we are going to see how object slicing in C++. Before diving into the topic let us revise two simple concepts of object oriented programming.
Abstract Class in Java
Before reading this tutorial I will recommend you to read
about dynamic binding in java, because without knowing about dynamic binding
you can’t understand the concept of abstract class ...Learn More
Anonymous Class in Java
Anonymous class in Java is a class without name. Its name is decided by the compiler. It enables us to declare and instantiate the class at the same time. It is like local class except ...Learn More
C++ program to swap two numbers using class
int a, b;
void swap:...Learn More
**Difference Between Constructor and Destructor**
Constructor and Destructor are the special methods which makes our crucial tasks easier while programming. If you have ever worked in programming language like ...Learn More
**C++ program for overloading binary operators, addition, subtraction, multiplication, division and comparison**
In this program we will first create a class demo that
contains two float data members a and...Learn More
C ProgramsC TutorialsClass
Storage Classes in C
Till now we have declared the variables in its simplest form. Declaration of variables contains two parts.
Data type of the variable
Storage of the variable
Till now we are just declari...Learn More
What are Local Classes in C++?
Classes that are defined and used inside a function or a block are known as local classes. Lets take an example.
void demo(int x) //enclosing function