Tuesday, July 14, 2009

Is this correct way C++?

inheritance-----------actually in a program i found i am just writing this sequal;;;;;


(1)protected then


private the


public// why this way is used in the program plz anyone give me a example for what region this method is used and


private


public


protected also this


could you plzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz

Is this correct way C++?
protected it means that the objects that are being defined as protected can only be access by other members that inherit their properties.


public means that any other class can access this object or function because there is no restriction assigned to it.


and private means that only the methods or objects from the class, can access these methods assigned
Reply:j


No comments:

Post a Comment