+ 2
C++ polymorphism
Demonstrate with code extracts the following types of C++ polymorphism, 1)Early binding 2)Late binding
17 Answers
+ 4
Ok
Can you share the Question Links here
Let me see them 
👍👍👍
+ 4
No probs
No need to Say Please
👍👍👍
Letvme go through it
+ 2
Choose late binding
functions with virtual it is late binding , or it is early binding.
+ 2
Wait
+ 2
https://code.sololearn.com/ckbDbB2WqY6Q/?ref=app
+ 1
Write for both early binding and late binding... Please
+ 1
Thank you so much.
Cos I wanna see the steps and everything in the program
+ 1
Thank you soo much
+ 1
I really appreciate
+ 1
Thank you so much Ishola...
Hope you will also answer my next questions onwards...Please!!
+ 1
Ok
No probs Vincent Alulu
+ 1
I don't know how to share the links...Maybe you just click on my profile and answer the four last questions... So that I go through yours🙏🏿🙏🏿🙏🏿  please
+ 1
This well help you.
https://code.sololearn.com/cY51cpaRbVo2/?ref=app
0
How about my other question on constructors and deconstructors??
0
Hey 
Please check out my other questions about four of them and help me out please!!
0
#include <iostream>
using namespace std;
class Drink {
    protected: 
        int price;
    public:
        void setPrice(int a){
            price = a;
        }
};
class Coffee: public Drink {
    public:
        void make() {
            cout<<"Coffee:"<<price<<endl;
        }
};
class Tea :public Drink{
    public:
        void make() {
            cout<<"Tea:"<<price<<endl;
        }
};
int main() {
    Coffee c;
    Tea t;
    Drink *e1 = &c;
    Drink *e2 = &t;
    *e1->setPrice(5);
    *e2->setPrice(6);
    
}








