Access over 20 million homework & study documents

Differentiate between class Derived public Base and class Deri

Content type
User Generated
Rating
Showing Page:
1/2
Differentiate between
class Derived :public Base and class Derived: private
Base.
Differentiate between
class Derived :public Base and class Derived: private
Base.
class Derived :public Base and class Derived: private
Base.
Solution
When deriving a class from a base class ,the base class
may be inherited through public,protected and private
base.We hardly use protected or private base ,but but
public base is commonly used.Public basePrivate
baseWhen deriving a class from a public base ,public
members of the base class become public members of
derived classWhen deriving from a private base class
,public and protected members of the base class become
private members of derived classAll the variables or
functions declared as public can be accessed by
anyoneAll variables can be accessed only by object of

Sign up to view the full document!

lock_open Sign Up
Showing Page:
2/2

Sign up to view the full document!

lock_open Sign Up
Unformatted Attachment Preview
Differentiate between class Derived :public Base and class Derived: private Base. Differentiate between class Derived :public Base and class Derived: private Base. class Derived :public Base and class Derived: private Base. Solution When deriving a class from a base class ,the base class may be inherited through public,protected and private base.We hardly use protected or private base ,but but public base is commonly used.Public basePrivate baseWhen deriving a class from a public base ,pub lic members of the base class become public members of derived classWhen deriving from a private base c ...
Purchase document to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Anonymous
Really helped me to better understand my coursework. Super recommended.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Similar Documents