I saw the professor's PPT that distinguished the types of methods in the class diagram public - Access control to disclose one's attributes or actions to the outside world Private-Access control accessible only to inherited derived classes Access control that can only access the member functions of the protected-structure and cannot be accessed from the outside
It says so. But I wanted to distinguish between private and protected I tried googling, but I think the explanation between private and protected has changed... Is there anyone who is sure?
class oop
It's not hard.
Private is literally accessed only within that class. You will not be exposed to the child class after inheritance.
protected is accessed from the same package and child class.
578 Understanding How to Configure Google API Key
574 Who developed the "avformat-59.dll" that comes with FFmpeg?
572 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
912 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
617 Uncaught (inpromise) Error on Electron: An object could not be cloned
© 2024 OneMinuteCode. All rights reserved.