Inheritance
In real life inheritance is what we acquire from our parents. For example our lifestyle, way of talking etc… In Object Oriented Programming Inheritance is the process by which objects of one class acquire the properties...
Read MorePosted by M. Saqib | Sep 15, 2008 | Object Oriented Programming: Inheritance, Polymorphism, Encapsulation |
In real life inheritance is what we acquire from our parents. For example our lifestyle, way of talking etc… In Object Oriented Programming Inheritance is the process by which objects of one class acquire the properties...
Read MorePosted by M. Saqib | Sep 14, 2008 | C++ Programming: Different Articles on C++ Programming |
Encapsulation is a fundamental concept in Object Oriented Programming (OOP) that involves bundling data (attributes) and methods (functions) into a single unit known as a class. This encapsulated unit acts as a self-contained module which enhances code organization and promotes a more intuitive and manageable structure for programmers.
Read MorePosted by M. Saqib | Sep 13, 2008 | C++ Programming: Different Articles on C++ Programming |
Functions are the building blocks of any programming language. In C++, a function is a block of code that performs a specific task. Think of it as a mini-program within your main program, designed to execute a particular operation. Functions are like building blocks that help break down complex problems into manageable chunks, making your code more readable and modular.
Read MorePosted by M. Saqib | Sep 12, 2008 | C++ Programming: Different Articles on C++ Programming |
Virtual functions enable redefinition of a base class function in derived classes using the “virtual” keyword. They allow dynamic selection of the appropriate function at runtime based on the object’s actual type.
Read MorePosted by M. Saqib | Sep 11, 2008 | Object Oriented Programming: Inheritance, Polymorphism, Encapsulation |
Any program which uses these five methodologies or any of it, we can call that program object oriented. They are Encapsulation, Data Hiding, Overloading, Polymorphism, Inheritance. Any programming language which supports all of these features and facilitate the programmer in developing the program in these methodologies is called Object Oriented Programming Language i.e. C++, Java, C#.
Read MorePosted by M. Saqib | Sep 10, 2008 | C++ Programming: Different Articles on C++ Programming |
Welcome to the another C++ article where we will uncover the language’s flexibility and power through various data types. In this article, we’ll explore the compounded types such as Enumerated Types, Simple Structures, Very Simple Classes, the intriguing concept of the union and Type Conversions in C++. So, buckle up, aspiring programmers, as we embark on a journey to demystify these essential building blocks of C++.
Read MorePosted by M. Saqib | Sep 10, 2008 | C++ Programming: Different Articles on C++ Programming |
Multiple Inheritance in C++ is a powerful yet intricate feature that allows a class to inherit properties and behaviors from more than one base class. In traditional single inheritance, a class can have only one immediate parent, but with multiple inheritance, a derived class can inherit from multiple base classes.
Read MorePosted by M. Saqib | Sep 10, 2008 | C++ Programming: Different Articles on C++ Programming |
While grasping the fundamentals of encapsulation is crucial, delving into advanced concepts and patterns elevates code design and maintainability further in C++. In this article, we will explore sophisticated aspects of encapsulation that go beyond the basics and provides you with a deeper understanding of its applications and impact on software development.
Read More