Posts

Showing posts from May, 2021

Object Oriented Programming in C++

Image
            introduction: Object-oriented programming – As the name suggests uses  in programming. Object-oriented programming aims to implement real-world entities like inheritance, hiding, polymorphism, etc in programming. The main aim of OOP is to bind together the data and the functions that operate on them so that no other part of the code can access this data except that function. Characteristics of an Object-Oriented Programming language Class:  The building block of C++ that leads to Object-Oriented programming is a Class. It is a user-defined data type, which holds its own data members and member functions, which can be accessed and used by creating an instance of that class. A class is like a blueprint for an object. For Example: Consider the Class of Cars. There may be many cars with different names and brand but all of them will share some common properties like all of them will have 4 wheels, Speed Limit, Mileage range etc. So here, C...

Data Structures and Their Applications

Image
What is Data Structure? “A data structure is a way of organizing data in some fashion so that later on, it can be accessed, queried, or even updated easily and quickly” It is a collection of values. The values can have relationships among them and they can have functions applied to them. Each one is different in what it can do and what it is best used for. Each is good and is specialized for its own thing. They are essential components in creating fast and powerful algorithms. They help to manage and organize data so that it will make our code cleaner and easier to understand.  Data structures  can make the difference between an Okay product and an outstanding one.  Before getting to  Data structures , we have to talk about the abstraction of Data structures. In other words, let’s discuss the concept of  Abstract Data Types . What is Abstract Data Type (ADT)? An abstract data type (ADT) is simply an abstraction of a data structure. It provides only the interface...