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


Please Help Members By Posting Answers For Below Questions

What is a function in oop?

629


What is the real life example of polymorphism?

605


Advantage and disadvantage of routing in telecom sector

786


write a programe to calculate the simple intrest and compund intrest using by function overlading

1668


What is polymorphism and example?

592






What is purpose of inheritance?

643


Is oop better than procedural?

572


What is encapsulation in ict?

608


What does and I oop mean?

614


Plese get me a perfect C++ program for railway/airway reservation with all details.

3427


write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).

1640


What is the example of polymorphism?

556


What is polymorphism explain its types?

680


Which language is pure oop?

549


What are main features of oop?

631