Character Set · Language supports à collection of characters à use in the source code. · Use in the program for identifiers, literals, and other syntactical elements. Divided into different categories, including: Basic Source Character Set Character Literals and Escape Sequences 1. Basic Source Character Set…
Read moreFRIEND FUNCTIONS IN C++ A friend function is a non-member function that is given special permission to access the private and protected members of a class. Normally, only member functions of a class can access private data. But a friend function breaks this rule safely for special cases. Syntax A friend function is declared inside th…
Read moreAbstract Class An abstract class is a class that cannot be instantiated (i.e., you cannot create objects of it directly). It is used as a base class for other classes. The purpose à provide a common interface and functionality that can be inherited and implemented by its derived classes. An abstract class contains at least one pure virtual funct…
Read moreFUNCTION OVERRIDING · A feature of runtime polymorphism · derived class provides its own implementation of a function that is already defined in the base class . · Same function name, Same return type, Same parameter list occur in inheritance. Requires virtual keyword to achieve runtime polymorphism. · Modify or ext…
Read moreBenefits and Applications of Object-Oriented Programming (OOP) Benefits of OOP Modularity Code reusability Data hiding Polymorphism Maintainability Real-world modelling Productivity Extensibility Applications of OOP Enterprise software Game development GUI applications Simulation & mode…
Read more
Social Plugin