Tag: functions
When to use virtual functions in C++?
When we want a Derived Class to override a member function of Base class, then we should make that member function in Base class virtual. So that if someone uses the Derived class object using Base class’s pointer or reference to call the overridden member function, then function of derived class should be called. Suppose draw() is …
How virtual functions works internally using vTable and vPointer?
In this article we will discuss that how virtual functions in C++ works internally using vTable and vPointer. If you are not clear on what is virtual function and in which scenarios we need them, then we suggest you to go through this article first, Advertisements https://ownyourlife.com.ng//when-should-i-use-virtual-functions-in-c/ virtual functions is based on run time binding. So, let’s …
How virtual functions works internally using vTable and vPointer?Read More
Python : **kwargs | Functions that accept variable length key value pair as arguments
In this article we will discuss how to create functions in Python that can accept variable length arguments in key value pair format. Suppose we want to define a function that will print the provided students details. Details will be in key value pairs, where key represents the property name and value as property’s value. …
Python : **kwargs | Functions that accept variable length key value pair as argumentsRead More
C++11 / C++14 : ‘delete’ keyword and deleted functions with Use Cases | Examples
In this article we will discuss how to use delete keyword with functions and its use cases. Deleting Functions using ‘delete’ keyword In C++11 a new feature of keyword delete is introduced. Now we can apply the delete keyword to functions to make them uncallable. void someFunction() = delete ; Its practical use cases are, …
C++11 / C++14 : ‘delete’ keyword and deleted functions with Use Cases | ExamplesRead More
Why do we need Lambda functions in Python ? | Explained with examples.
In this article we will discuss what is a lambda function in python and why they are required. Basically what are the use cases which makes use of lambda function must. What is a lambda function ? Lambda functions are also called Anonymous functions because they don’t have any name. Also they can be assigned …
Why do we need Lambda functions in Python ? | Explained with examples.Read More
Python : How to use if, else & elif in Lambda Functions
In this article we will discuss how to use if , else if and else in a lambda functions in Python. Will also explain how to use conditional lambda function with filter() in python. Using if else in Lambda function Using if else in lambda function is little tricky, the syntax is as follows, lambda …
Python : How to use if, else & elif in Lambda FunctionsRead More
Python Functions
In this tutorial, we will learn all about functions in Python. Table Of Contents What is a Function in Python? Why do we need functions in Python? How to define a function in Python Python function arguments and return value What is a Function in Python? A function is a group of statements, coupled together …
Functions in Python
We have created a list of tutorials to explain all about Functions in Python. S.NO Python Functions – Tutorials 4.1 What is a Function in Python? 4.2 Why do we need functions in Python? 4.3 How to define a function in Python? 4.4 Function arguments and return value in Python Functions. 4.5 Local variable vs …
Nigerian Deposit Insurance Commission (NDIC): functions, purpose and more
The Nigerian Deposit Insurance Commission (NDIC) was established in 1988 by the Nigerian government to protect depositors and promote confidence in the Nigerian banking system. NDIC operates as an independent agency, and its primary function is to ensure that depositors’ funds are safeguarded in the event of the failure of a bank in Nigeria. In …
Nigerian Deposit Insurance Commission (NDIC): functions, purpose and moreRead More
Commercial bank: meaning, types, functions, and more
Commercial banks are an integral part of any country’s financial system. They perform several essential functions, including accepting deposits, lending funds, credit creation, providing payment services, and investing funds. Commercial banks have evolved over the years, adopting new technologies and expanding their services to meet the changing needs of their customers. However, they also face …
Commercial bank: meaning, types, functions, and moreRead More