search
Log In
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
1 vote
1.2k views

Member of a class specified as ______ are accessible only to method of the class.

  1. Private
  2. Public
  3. Protected
  4. Derive
in Object Oriented Programming
recategorized by
1.2k views

1 Answer

3 votes
ans is A private (these members  can only be accessed by methods of the class) it can not be inherited

public members  are accessible to everyone

protected members can be inherited and hence accessible by derived class

derive is not a member specifier

Related questions

0 votes
1 answer
1
341 views
Match the following : (a) Garbage collection in 1. Java (b) Nameless object 2. generic programming (c) Template support 3. defines a class (d) A forward reference 4. member function (e) Derived class inherits from base class 5. within a statement ... Codes : (a) (b) (c) (d) (e) 1 5 4 2 3 1 5 2 3 4 5 1 2 3 4 5 4 3 1 2
asked Sep 15, 2016 in Object Oriented Programming makhdoom ghaya 341 views
0 votes
1 answer
2
907 views
If a function is friend of a class, which one of the following is wrong ? A function can only be declared a friend by a class itself. Friend functions are not members of a class, they are associated with it. Friend functions are members of a class. It can have access to all members of the class, even private ones.
asked Sep 24, 2016 in Object Oriented Programming makhdoom ghaya 907 views
3 votes
2 answers
3
3.4k views
Which of the following is not a member of class ? Static function Friend function Const function Virtual function
asked Jul 20, 2016 in Object Oriented Programming makhdoom ghaya 3.4k views
1 vote
1 answer
4
881 views
Match the following with respect to I/O classes in C++: List - I List - II a. fopen() i. returns end of file b. fclose() ii. return for any problem report c. ferror() iii. returns 0 d. feof() iv. returns a file pointer ... a-iv; b-i; c-ii; d-iii a-iii; b-i; c-iv; d-ii a-ii; b-iii; c-iv; d-i a-iv; b-iii; c-i; d-ii
asked Jul 4, 2016 in Object Oriented Programming makhdoom ghaya 881 views
...