Function Overriding in C++(Urdu/Hindi)
HTML-код
- Опубликовано: 26 авг 2021
- In this video, we learn about function overriding in C++.
Write a program that declares two classes. The parent class is called Simple that has two data members a and b to store two numbers. It also has four member functions:
• The add() function adds two numbers and displays the result.
• The sub() function subtracts two numbers and displays the result.
• The mul() function multiplies two numbers and displays the result.
• The div() function divides two numbers and displays the result.
The child class is called Complex that overrides all four functions. Each function in the child class checks the values of data members. It calls the corresponding member function in the parent class if the values are greater than 0. Otherwise it displays error message.
Step by step explanation.
Easy to follow and understand.
www.itseriestutor.com
/ itseriestutor
#itseries#CPP#OOP
sir mashallah u are doing brilliant job in programming
sir very great explanation bhoot informative video bhoot achi explanation Allah apko khush rakhy AMEEN SUM AMEEN
MashAllah sir great and easy explanation
Awosome ☀️☀️☀️
best explanation sir
great explanation
Thnx sir. It proves very helpful video 🙂
Keep it up 💯
MashaAllah sir great.
Super
Amazing Sr🎉
👍🏼
GOOD
make more videos
sir you make a good videos and i request to uploaded new video regarding promging in c+++
Hye can you guide me
@@Devil-wm2et yes
😅