#include <iostream>
using namespace std;
struct wow {
int x;
};
int main() {
wow a;
wow *b;
a.x = 22;
b = &a;
a.x = 23;
cout << b->x;
return 0;
}
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
is there any choice in opting subjects like 4 out of 7
Program to check whether a word is in all capital letters
What is a scope operator and tell me its functionality?
Why static functions always uses static variables?
What is nutshell in programming language?
1 Answers Satyam, Tech Mahindra,
What is property in oops?
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)
What are the components of marker interface?
Why do we need polymorphism in c#?
Why multiple inheritance is not allowed?
inheritence with example