Can we call a base class method without creating instance?
Answers were Sorted based on User's Feedback
Answer / nk
Onlu static methods can be called without creating any
instance of the class.
|Is This Answer Correct ?||23 Yes||1 No|
Answer / 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 ?||10 Yes||1 No|
Answer / sanjay makwana, puna
e.g. class X
cout << "X";
static void fun()
cout << "fun";
you may called like
|Is This Answer Correct ?||6 Yes||2 No|
Answer / rajesh
With :: operator
|Is This Answer Correct ?||7 Yes||4 No|
Answer / sg
Definitely,we have declare base class as static
|Is This Answer Correct ?||3 Yes||2 No|
OOP'S advantages of inheritance include:
Is enum a class?
What are the 5 oop principles?
What is a function in oop?
What is an advantage of polymorphism?
What are the four main oops concepts?
difine hierarchical inheritance.
what is mean by design pattern
what is the technical or oop name of object?
What is encapsulation in oops?
Name a typical usage of polymorphism
What is basic concept of oop?