#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];
}
Why is destructor used?
what is the difference between <stdio.h>and "stdio.h"?
what is namespace? what are the uses of namespace?
Which keyword is written to use a variable declared in one class in the other class?
Why a "operator=(...)" when there is a copy ctor?
What is extreme programming?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
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)
Example for 4 pillar of oops like, Inheritance,Poly,Abstraction,Encabsulation ?
which are the 4 members functions in c++ objects that can either be declared explicitly by programmer or implementation if nt available.
What is abstraction in oop with example?
Can we create object of class with private constructor?