What is the correct syntax for inheritance?
1) class aclass : public superclass
2) class aclass inherit superclass
3) class aclass <-superclass
Answers were Sorted based on User's Feedback
Answer / uuh
Obviously, it depends on which programming language is
being used.
| Is This Answer Correct ? | 2 Yes | 2 No |
what are the ways in which a constructors can be called?
Why do we use oop?
#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; }
How does polymorphism work?
Give two or more real cenario of virtual function and vertual object
What does and I oop mean in text?
What is the real life example of polymorphism?
When will a constructor executed?
Can we create object of interface?
What is methods in oop?
What is the difference between declaration and definition?
What are the main differences between procedure oriented languages and object oriented languages?
9 Answers IBM, Infosys, Wipro,