why we are declare the function in the abstract class even
though we are declaring it in Derived class?
Answer / vishal
Abstract class is nothing but placeholder for other classes
ie subclass.It defines common shared behavior in abstract
classes and if we need to override we need to define in its
subclass else we can use shared behavior in base class.
| Is This Answer Correct ? | 1 Yes | 0 No |
The type of variable a pointer points to must be the part of pointer's definition so that:
c++ provides classes...and classes do what we want but why then strcut are used...if we say data hiding... it is also provided by c++ in structs then why to prefer clasess
Why many objects can working together? How objects working togetherM I want to see example code.
Is abstract thinking intelligence?
hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.
write a program in c++ to overload the function add (s1,s2) where s1 and s2 are integers and floating point values.
What are the fields of vtable
#include <iostream> using namespace std; int main() { int a = 3; int c[5][5]; for (int x=0;x<5;x++) { for (int y=0;y<5;y++) { c[x][y] = x*y; } } cout << c[a][2]; }
write a progra in c++ using class & object to find out wheather a given no. is prim or not.
What is polymorphism programming?
Can anyone please explain runtime polymorphism with a real time example??at what ciscumstances we go for it??
What is polymorphism give a real life example?