• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu

Q&A Discussions

#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 Votes
1 Answer
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 Votes
3 Answers
1st Apr 2017, 10:52 AM
MisterMM23
< Previous1...89Next >
Hot today
How its output is 2 but not 3
0 Votes
Hi
0 Votes
Help
0 Votes
Checking personal activity
0 Votes
como puedo pasarme la lecciĂłn 5 de empezando de Python, ya es mi segundo intento.
1 Votes
Can any one know the best resourse where i can learn dsa for free
1 Votes
Use of global function in c
0 Votes
Python
0 Votes
Full form of HTML
0 Votes
OĂč mettre SQL
0 Votes