EASY
HSSC Clerk
IMPORTANT
Earn 100

Which among the following violates the principle of encapsulation almost always?
(a)Local variables
(b)Global variables
(c)Public variables
(d)Array variables
(e)None of these

50% studentsanswered this correctly

Important Questions on Object Oriented Programming
EASY
HSSC Clerk
IMPORTANT
Which among the following can be a OOPS concept against encapsulation rules?

EASY
HSSC Clerk
IMPORTANT
Using encapsulation data security is _____.

EASY
HSSC Clerk
IMPORTANT
Which among the following would destroy the encapsulation mechanism if it was allowed in programming?

EASY
HSSC Clerk
IMPORTANT
Which is the correct syntax of inheritance?

EASY
HSSC Clerk
IMPORTANT
Which among the following can't be used for polymorphism?

EASY
HSSC Clerk
IMPORTANT
In case of using abstract class or function overloading, which function is supposed to be called first?

EASY
HSSC Clerk
IMPORTANT
Which feature allows open recursion, among the following?

EASY
HSSC Clerk
IMPORTANT
If a base class is inherited in protected access mode then which among the following is true?
