#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 Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
What is a mixin class?
Given two strings like x=?hello? and y=?open?, remove any character from string x which is also used in string y, thus making the result x=?hll?.
What is a function in oop?
What is oops in simple words?
write a short note on Overloading of Binary Operator?
what is runtime polymorphism? For the 5 marks.
In which cases you use override and new base?
class type to basic type conversion
Why many objects can working together? How objects working togetherM I want to see example code.
what are the ways in which a constructors can be called?
What is polymorphism and why is it important?