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 the use of oops?
What is abstraction in oops with example?
What is abstract class in oops?
What is the difference between abstraction and polymorphism?
which feature are not hold visual basic of oop?
What are the three parts of a simple empty class?
State what is encapsulation and friend function?
What is polymorphism programming?
Can abstract class have normal methods?
2. Give the different notations for the class.\
Why is object oriented programming so hard?
Why is static class not inherited?
What are the components of marker interface?
Where is pseudocode used?
What are the two different types of polymorphism?