Blog results for Tags - #coding tips

Template in C++

Templates in C++ allow you to construct generic code that can deal with multiple data types without having to replicate the code for each one. In C++, templates are fundamental for constructing flexible and reusable classes and functions. In C++, there are two types of templates: function templates and class templates.

Parameterised constructor in java

A parameterized constructor in Java is a constructor that accepts one or more parameters when creating a class object. These parameters are used to set the values of the object's instance variables.

Translate Page