absolute beginner's guide to oop
TRANSCRIPT
OBJECTS and CLASSESA CrayonPaper presentation.
What are objects?What is a class?
How are they related?
LET’S DO A QUICK DEFINITION HERE
Object ClassAn object is an entity with unique characteristics and behavior.
A class is collection of similar objects.
DIDN’T UNDERSTOOD?
LET’S TAKE A SIMPLE EXAMPLE
Read more in depth
Below is screenshot of a folder
Now let’s take them one by one
CBSE 12 results is a file that contains my (horrible) marks . Uniqueness: PDF file so will open via any PDF reader like: Adobe PDF reader
This is a video file that has UNIQUE name and could be opened by any video player like VLC media player.
This is a subtitle file which can be opened by any media player or text editor and is used by media players to display subtitles in videos files. It’s unique as it is of a particular movie.
WHAT’S PROVED?
NOW WHERE IS CLASS
ALL THREE ARE OBJECTS
Note: A object can have more than one unique features.
All of them has one thing common. All of them are basically files.
All of them are contained in a folder which we can call class.
That’s it. Any confusion? Head over to the website given in the link or tweet me @casianandews.