The Gateway to Computer Science Excellence
+1 vote
717 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 by Boss (30.7k points)
recategorized by | 717 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
by Boss (49.3k points)

Related questions

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
50,737 questions
57,291 answers
198,209 comments
104,889 users