• Cursussen
  • Code Compiler
  • Discussiëren
  • Prijzen
  • Teams
Menu

Q&A Discussies

#include <iostream> using namespace std; class A{ public: void f1(); }; class B : public A{ public: virtual void f1(); } int main() { A * obj = new B; obj.f1(); } Ques: can we write virtual before an overridden function from the base class?? if yes which f1() should it call base class f1() or derived class f1()???
c++
0 Stemmen
1 Antwoord
24th Sep 2016, 10:52 AM
Amit
Amit - avatar
Hey there, I don't know why, but when I import tkinter on IDLE like this: from tkinter import * And I say: window = Tk() Even known I use python 3.2.5, which should be able to use Tkinter, the python shell raises a ValueError that says that Tk() is not defined. I am very sure I use python 3.2.5 and tutorials from the Python Foundation say that is what I have to do. But it still doesn't work. Does anyone have an idea of how to solve this problem? Thank you!
pythontkinter
0 Stemmen
3 Antwoorden
1st Apr 2017, 10:52 AM
MisterMM23
< Vorige1...89Volgende >
Populair vandaag
Where is the bug?
3 Votes
im beginner
2 Votes
Pointers cpp
2 Votes
Is it possible to convert .zip file to apk? If yes, how??
1 Votes
How to add two strings together in ts or css
1 Votes
I think the heart system is ridiculous, 5 hearts that refill after like 5 hours? That is really just crazy to me.
1 Votes
Is pro worth the money ?
1 Votes
Why can’t I use double “ in python?
0 Votes
2 cases not correct what's the problem
1 Votes
What do you think of this code and what are your suggestions for developing and modifying it?, How can I develop myself more?
0 Votes