While programming sometimes you need to take some decisions. You need to test some condition: true or false. In Python there are various types of statements for this. Some of them are given below. If StatementIf Else statementNested If statementsIf-elif…
5 Algorrithms Every Programmer Should Know
A programming algorithm is a computer procedure that is a lot like a recipe (called a procedure) and tells your computer precisely what steps to take to solve a problem or reach a goal. Algorithms play an important role in the…
How to get current Date and time in JAVA
In this post You'll come to know about several methods of getting current date and current time in different timezone in JAVA. Get Current Date in JAVA import java.time.LocalDate; public class CurrentDateTimeExample { public static void main(String[] args) {…
C/C++ Program to Check if a Given String is Palindrome
The most asked questions in TCS/ Wipro/Infosys and other MNC. Palindrome: A string is called palindrome if its reverse of the string is the same as the original string. For Example: "GEEG", "LOOL","AABBBAA".
Exception Handling in C++
Exception is an abnormal behavior of the program during runtime.
It will occur when the user gives input to the program something that is out of the scope.
How to host a static website on Github
What is Github? GitHub is a code hosting platform for version control and collaboration. It lets you and others work together on projects from anywhere. This tutorial teaches you GitHub essentials like repositories, branches, commits, and Pull Requests. You’ll create your own Hello World…
Templates in C++
A template is keyword in C++ that is used to make your function or class generalize as far as the data type is a concern.
Template keyword used before function and class.
Pure Virtual Functions and Abstract Classes in C++
A class is an abstract class if it will contain at least one virtual function.
We can't create the object of the Abstract class because if we create the object of the abstract then we can also call the function of virtual that is virtual function has no definition. To stop the calling of virtual function c++ can create rule that is we cannot create an object of the abstract class.
Virtual Function in C++
A virtual function is a member function of the parent class that is defined by using the "virtual " keyword. These functions derived by the child class and call by the pointer or object of the parent class. And execute the derived class of the function.
Top Resources for Computer Science Learning
For self-starters interested in technology, there have never been so many options for free online education List Of Best Resources for Online Learning Competitive Programming HackerRank provides you a good platform to solve coding problems with inbuilt compiling and execution…