Home Author

Wajeeh Zahid

  • Recursion is the core of programming and is used in many related concepts like sorting, tree traversal, and graphs. In addition, recursion has a wide variety of uses in data structures and algorithms, and even though it is a complex concept, it can be used to make the task easier.

  • Inheritance is one of the core concepts of an object-oriented language such as Java. Inheritance allows a new class to extend from an existing class known as the parent class. So when do we use inheritance? Consider a scenario where a vehicle describes a very general transportation model, then comes a car, bicycle, and truck.

  • Patterns are often considered an effective method to learn logic building and acquire expertise in manipulating loops. Printing a palindrome pattern is amongst the favorite questions of an interviewer. To counter that, in this article, we will discuss palindrome patterns of letters and numbers.

  • Before coding the example of a matrix spiral, we need to see how to create a matrix in C++. To create a matrix in C++, we use a 2D array, and we can declare it as the following.

  • To have an in-depth understanding of converting roman numerals into decimals, we must first have an idea about the roman numeral system. It is a number system where letters are used to denote numbers. Modern roman numerals consist of 7 symbols, and each of them has a fixed decimal value.

  • Java development SE kit is important to develop applications, applets, and components using Java programming language. The JDK includes also includes the tools useful for testing programs written in Java and running on the Java platform. In this tutorial, we shall loom into the step-by-step process of installing JDK on the Windows system, and also look at the method of setting an environment variable that lets you run Java using the command-line.

  • C++

    Stack in C++

    by Wajeeh Zahid

    The true essence of learning a language is getting familiar with data structures in that language. Data Structure is a fundamental concept as programming is all about storing data, retrieving data, and dealing with data types. The most common data structure we come across is an array. An array is a basic abstract data type that linearly holds data.

  • Arrays are a widespread concept in many programming languages. Before heading into the concepts, let’s understand what Arrays are and why they are so important? Suppose we need to make a program to store the names of five fruits, namely orange, mango, banana, apple, and grapes. All the fruits would have the same type, i.e., a string but stored in different 5 variables. We use an array to solve this problem, so an array is a data structure that holds fixed-size elements of the same data type.

  • In the past, we showed we published the basics of object-oriented programming in C++. That should help you get started. Today we look at the oriented principles. It’s basically the way we program our classes and access the objects. There are four object-oriented principles that you should be aware of, namely:

  • Java is the most famous object-oriented language used by programmers today. To get an in-depth narrative of how java works, we need to have a deep understanding of classes and objects. Let’s dive into the world of objects and classes and have a first look at how they operate.