Containership in C++(Urdu/Hindi)
HTML-код
- Опубликовано: 6 сен 2024
- In this video, we will learn about containership in C++.
A technique in which a class contains an object of another class as its member is called containership. This type of relationship between classes is also called has-a relationship. It means that one class has an object of another class as its member.
Write a class Result that has an array of three integers as attribute. It has a member function to input and a member function to display average of array elements. Create another class Student that inherits Result class. It has additional attributes of roll number, name and an object of type Result. It also has member functions to input and display its data members.
Step by step explanation.
Easy to follow and understand.
www.itseriestu...
/ itseriestutor
#itseries#CPP#OOP
Amazing, Perfect coding example to understand Composition/containership. Thank you
Wonderful video hai ❤❤
Good
JazakAllah o khair kaseer ameen
Sir can you solve programming exercises of chapter 15 of c++
Sir private kuo use Kiya Yaha line number 11 ma protected be kr skta ha ka nhi
10th class urdu medium wala new syyabus آئینہ kb ayga????
Mjhe koi mshwra de mn 10 k bad mn study continue rkhu ya chorhduu
best work. sir apka name kia hay? kia ap nay hi wo book likhi hay C++ 2nd edition?
Nice