• Cursos
  • Compilador de Código
  • Discutir
  • Preços
  • Teams
Menu

Q&A Discussões

#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 Voto
1 Resposta
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 Voto
3 Respostas
1st Apr 2017, 10:52 AM
MisterMM23
< Anterior1...89Próximo >
Quente hoje
How can one build an Ai app
4 Votes
How to properly reverse a string in python
2 Votes
Can someone explain how it works (im new)
1 Votes
AI Takeover
2 Votes
How to learn python
1 Votes
C course progress restart
2 Votes
I need a mentor in coding specifically AI
0 Votes
Using Python on VScode
0 Votes
Error in the result
0 Votes
Average of Two Numbers
0 Votes