Tag: constructors
-
JavaConstructor in Java
Java constructors or constructors in Java are terminologies used to construct something in our programs. A constructor in Java is…
May 13, 2022
-
JavaMore about Constructors
Let us take a look at various other constructors in Java. Copy constructor: A copy constructor is a type of constructor in Java…
May 14, 2022
-
JavaStringBuilder class in Java
The Java class StringBuilder represents a mutable string of characters. The StringBuilder class offers a substitute for the String Class…
June 17, 2022
-
JavaChained Exceptions
What are Chained Exceptions? One exception can be related to another using chained exceptions. We can use the chained exception…
June 27, 2022
-
JavaJava TreeSet class
TreeSet is a widespread Java implementation of the SortedSet interface that employs a Tree for storage. Whether an explicit comparator…
July 26, 2022
-
JavaBoolean class in Java
In java.lang package, there is a wrapper class Boolean. A value of the primitive type boolean is wrapped in an…
August 27, 2022
-
C++Constructors and Destructors in C++
Constructor: A constructor is a special member function of a class and shares the same name as of class, which…
October 13, 2022
-
C++static keyword in C++
When the static keyword is used, variable or data members or functions can no longer be changed. It is allocated…
October 14, 2022
-
C++Copy Constructor in C++
A copy constructor is a type of constructor that creates a copy of another object. If we want one object…
October 19, 2022
-
C++Order of Constructor Call in C++
If we inherit a class from another class and create an object of the derived class, it is obvious that…
October 23, 2022
-
C++Virtual Destructors in C++
What is a Virtual Destructor? Deleting a derived class object with a non-virtual destructor using a pointer of the base…
October 28, 2022
-
PythonDestructors in Python
When an object is destroyed, the destructors are called. Destructors are not as necessary in Python as they are in…
December 12, 2022