#include <iostream>
using namespace std;
struct wow {
int x;
};
int main() {
wow a;
a.x = 22;
int c = a.x;
int *b = new int;
cout << c;
return 0;
}
option:
No output
0
22
-(11)
Will not compile
what is the difference between inter class and abstract class...?
Which method cannot be overridden?
In which Scenario you will go for Interface or Abstract Class?
1 Answers InfoAxon Technologies,
what type of questions
What is Virtual Keyword?
should we use linear search or binary search if elements are placed in random order or mixed?in both cases? i need a little bit detail ans?thnks
Advantage and disadvantage of routing in telecom sector
why overriding?
What are the data types in oop?
What is constructor in oop?
for example A,B,C,D are class all the 4 class contain one method who() but the method who() implementaion is differnet among each class. the relation among the 4 class are A is base class and is inherited by B and C.and from this two B and C where D is inherited. the question is i want to display the output who() method in all the classes(A,B,C,D)the output of who() method is diferrent amond all the class(A,B,C,D) ------A------ virtuval who(print a) override | | who(print b) B C override who(print c) | | -------D------ override who(print d)
diff between Virtual mathod and abstract method?