#6 constructor in oop | constructor in object oriented programming | constructor in programming

preview_player
Показать описание
In this lecture will learn about #constructors in #c++ #object #oriented #programming #oop and constructors with parameters, constructor in c++ in urdu, class constructor

-~-~~-~~~-~~-~-
Please watch: "Best Quotation Websites"
-~-~~-~~~-~~-~-
Рекомендации по теме
Комментарии
Автор

Great Tutorial. Loved the way of teaching. keep up the good work.

MrFACTS-mkib
Автор

I'm inspire by your way of teaching...
Thank you so much

ScrollMore
Автор

Very nice video and i understand everything and very helpfull video

mehtabsajid
Автор

Sir bhat easy method sa samjhya Ap na thank you sir

SajidMehmood-xvbv
Автор

thanku sir your teaching method is very good i easliy understand your lecture GOd be blesed you sir

sabirshehzada
Автор

nice video sir...bhut acha smjaty hn app...
ap apni videos ko rank kryn...

tech-ki-dunya
Автор

Your way is different from others I easily understand everything
Please make video on practise work related to constructor..

learnlab
Автор

Pyare bhai mazeed videos bnao oop par.
Bouht shukriya

sherymalik
Автор

#include<iostream>
using namespace std;
class product{
int n1;
int n2;
public:
product(int num3, int num4){
n1=num3;
n2=num4;
}
void display(){
cout<<"The product is"<<n1*n2<<endl;
}
};
int main()
{
product p1(50, 100);
p1.display();
}

shamsurrehman
Автор

Your all tutorials are really so unique , maine bhot se dekhe but ya sabse unique lga bhot he esly smj aya so thank you 😊 💖

thebeuatyofnature.arvind
Автор

Sir you are amazing thank you very much

adnanrasheed
Автор

very very nice video sir g may you live long and be happy💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖

MUSKAN-vhcx
Автор

Thank uh so much sir it's very helpful for me 😊 sir yaqeen janiy nfrt c hogii thi oop syy pr JB syy apply lecture liayy Yaa itnaa interesting lgg rhaa or boht acha smj b aa rhaa app mryy liayy 1 farishtaa bnn k ayy hoo oop k subject main pass honyy k liayy hmryy ppr haa 14 syy inshallah tbb tkk boht achii tyrii hojayy din rat 1 krkyy apkyy lecture syy concept lun ghi to again shukerya

fzilatabassum
Автор

nice work bro keep it up
kisi ka lecture ya tutorial samjh ni ata tumharay tutorials k ilawa

osikhan
Автор

Sir plz make more videos..I could nvr learn c++ more clearly thn this..plz consider my request

akshitarawat
Автор

#include<iostream>
using namespace std;
class constructor
{
int num1;
int num2;
public :
constructor()
{
num1 = 50;
num2 = 100;
}
void product()
{
cout<<"The Product of num1 and num2 is "<<endl;
cout<<"\t"<<num1*num2;
}
};
main()
{
constructor d1;
d1.product();
}

MuhammadYousaf-icrp
Автор

tell me how many constructor makes at one time & if then how they work

VirtualPolytechnic
Автор

/*
* Assignment of Constructor

* W.A.P to write a class which initializes two data members
* 50 and 100 in an constructor, then write a member function
* product in which two data members are multiplied and then
* product of two data members are displayed
*/

# include <iostream>
using namespace std;

class Numeric
{
public:
int n1, n2;

Numeric(int a1, int a2)
{
n1 = 50, n2 = 100;
}

void product()
{
int product;
product = n1 * n2;
cout << "Product of two data members = " << product << endl;
}
};

int main()
{
Numeric m1(50, 100);
m1.product();
}

muhammadhamzaatif
Автор

mje youtrube pe srf apki programming samj ayi hy aj tk. keep it up sir

bangashkhan
Автор

shahzaib bui ma jub bi programming karta ho to error bohat aa jatay hay. as ki kua waja ha????

khalidmahmood