search
Log In
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
1 vote
94 views
Give a simple example on inheriting the operator function and using it in programme
in Object Oriented Programming
retagged by
94 views
0
You can find it on Google easily. In case any more specific doubt on that, you can ask

Please log in or register to answer this question.

Related questions

0 votes
0 answers
1
60 views
Please explain the working of this code:- #include<iostream> using namespace std; class Base { public: int x; Base():x(10){} ~Base(){} }; class Derived:public Base { public: int y; Derived():y(20){} ~Derived(){} }; int main() { Base bobj,*bptr; Derived dobj,*dptr; bptr ... to derived members // dptr=(Derived*)&bobj; cout<<dptr->x<<endl; cout<<dptr->y<<endl; } Output:-10 10 0 [Finished in 2.7s]
asked May 12, 2018 in Object Oriented Programming kd..... 60 views
2 votes
1 answer
2
1.9k views
When the inheritance is private, the private methods in base class are _____ in the derived class (in C++) inaccessible accessible protected public
asked Jul 30, 2016 in Object Oriented Programming jothee 1.9k views
2 votes
3 answers
3
1.2k views
Which of the following, in C++, is inherited in a derived class from base class? constructor destructor data members virtual methods
asked Jul 30, 2016 in Object Oriented Programming jothee 1.2k views
1 vote
1 answer
4
356 views
_____ allows to create classes which are derived from other classes, so that they automatically include some of its "parent's" members, plus its own members. Overloading Inheritance Polymorphism Encapsulation
asked Jul 25, 2016 in Object Oriented Programming jothee 356 views
...