How would you stop a class from class from being derived or
inherited.
Answer Posted / naveen
by making the constructor private....
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
How many human genes are polymorphic?
What is the real time example of inheritance?
What are properties in oop?
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
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?
Can we create object of interface?
What is byval and byref? What are differences between them?
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
What is oops and why we use oops?
Why do we use class in oops?
What is difference between data abstraction and encapsulation?
What is variable example?
Can we create object of abstract class?
Explain the advantages of inheritance.
Why we use classes in oop?