EASY
HSSC Clerk
IMPORTANT
Earn 100

Which is must condition for virtual function to achieve runtime polymorphism?
(a)Virtual function must be accessed with direct name
(b)Virtual functions must be accessed using base class object
(c)Virtual function must be accessed using pointer or reference
(d)Virtual function must be accessed using derived class object only
(e)None of these

50% studentsanswered this correctly

Important Questions on Object Oriented Programming
EASY
HSSC Clerk
IMPORTANT
While inheriting a class, if no access mode is specified, then which among the following is true?

MEDIUM
HSSC Clerk
IMPORTANT
A virtual function is _____ class function, which is expected to be redefined in class, so that when reference is made to _____ class object using the pointer, then we can call virtual function to execute _____ class definition version.

EASY
HSSC Clerk
IMPORTANT
What exactly is passed when an object is passed by reference?

EASY
HSSC Clerk
IMPORTANT
If object is passed by value, _____.

EASY
HSSC Clerk
IMPORTANT
Which one of the following options is correct?

EASY
HSSC Clerk
IMPORTANT
Which of the following is used to make an abstract class?

EASY
HSSC Clerk
IMPORTANT
Which of the following statement is correct?

EASY
HSSC Clerk
IMPORTANT
If new operator is defined for a class and still global new operator have to be used, which operator should be used with the keyword new?
