What is the correct syntax for inheritance?
1) class aclass : public superclass
2) class aclass inherit superclass
3) class aclass <-superclass
Answer Posted / uuh
Obviously, it depends on which programming language is
being used.
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
How is class defined?
Why do we use encapsulation in oops?
What is the use of oops?
what's the basic's in dot net
How do you define a class in oop?
what is graphics
What is the types of inheritance?
#include
How do you define social class?
Can we create object of interface?
write knight tour problem which is present in datastructure
What is polymorphism in oop example?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
Why do we use inheritance?
What is encapsulation and abstraction? How are they implemented in C++?