Which of the following are features of object oriented programming?
a) objects
b) classes
c) polymorphism
d) all of these
Which of the following keyword is used to declare a class?
a) Class
b) method
c) function
d) member function
The variables declared in a class are known as..
a) member variables
b) data members
c) both a & b
d) none of these
Which of the following is correct syntax for declaring a class?
a) class identifier{body}
b) class identifier (body)
c) class identifier [body]
d) none of these
How many types of access specifiers in object oriented programming?
a) one
b) two
c) three
d) four
Explanation: private, protected, public
Which of the following specifier is used to restrict the use of class member within class?
a) public
b) private
c) protected
d) final