Can we call a base class method without creating instance?
Answer Posted / sanjay makwana, puna
e.g. class X
{
int x;
X()
{
cout << "X";
}
public :
static void fun()
{
cout << "fun";
}
};
you may called like
X::fun();
Is This Answer Correct ? | 10 Yes | 3 No |
Post New Answer View All Answers
What is cohesion in oop?
What is solid in oops?
can we make game by using c
Which type does string inherit from?
What is encapsulation with example?
What is encapsulation in oops?
what are the ways in which a constructors can be called?
What is the main feature of oop?
What is abstraction encapsulation?
write a program to find 2^n+1 ?
How do you achieve runtime polymorphism?
What is new keyword in oops?
What is inheritance in simple words?
Is react oop?
Why do we use oops?