Didnt find the topic youre interested in?
Mail us about your preferences:
[email protected]
Vote for new CodeGalaxy courses.
Take an active part and create C++ quiz questions.
Check FAQ and learn how to contribute to CodeGalaxy community and earn Gravity.
Agree with prorokvspsix79. To call function f of class Base which is declared as pure virtual but has definition Base::f();
Nov 11, 10:57:36 PM C++
... Since destructor ~A() isn't declared as virtual and type of pointer "one" is A, when we delete pointer "one", only destructor of class A executes, s = 1 and output 1. Destructor of class B will not execute..
Nov 10, 1:54:28 PM C++
template<template<typename> typename T> class A{}; же допустимо
Oct 4, 4:42:13 PM C++
runtime error is right answer
Oct 3, 2:31:26 PM C++