Classes – Object Oriented Programming
If we say that a particular programming language is Object Oriented then it means, the programming...
Read MorePosted by M. Saqib | Sep 17, 2008 | Object Oriented Programming: Inheritance, Polymorphism, Encapsulation |
If we say that a particular programming language is Object Oriented then it means, the programming...
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 13, 2008 | C Programming: Different Articles on C Programming |
This article is about file handling using C programming language. File stores information for many purposes and retrieve whenever required by our C programs. A file represents a sequence of bytes on the disk where a group of related data is stored. File is created for permanent storage of data. C programming language can handle files as Stream-oriented data (Text) files and System oriented data (Binary) files.
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 |
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 More