Can we call a base class method without creating instance?
Answer Posted / amit sharma
U've to derieve the class first and then when u instanciate
the derieved class. Then :-
U can call it using derieved class object or in a derieved
class member function depending upon base class fun's acess
specifer and inheritence specifier.
| Is This Answer Correct ? | 11 Yes | 1 No |
Post New Answer View All Answers
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?
Why is polymorphism used?
#include
What does and I oop and sksksk mean?
What is the difference between static polymorphism and dynamic polymorphism?
can inline function declare in private part of class?
Where You Can Use Interface in your Project
What is encapsulation and abstraction? How are they implemented in C++?
What is encapsulation c#?
What is multilevel inheritance in oop?
Which is better struts or spring?
What do you mean by overloading?
What is encapsulation in ict?
What is oops and why we use oops?
Give two or more real cenario of virtual function and vertual object