absolute beginner's guide to oop

9
OBJECTS and CLASSES A CrayonPaper presentation.

Upload: mukund-madhav

Post on 13-Apr-2017

63 views

Category:

Software


2 download

TRANSCRIPT

Page 1: Absolute Beginner's Guide to OOP

OBJECTS and CLASSESA CrayonPaper presentation.

Page 2: Absolute Beginner's Guide to OOP

What are objects?What is a class?

How are they related?

Page 3: Absolute Beginner's Guide to OOP

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.

Page 4: Absolute Beginner's Guide to OOP

DIDN’T UNDERSTOOD?

LET’S TAKE A SIMPLE EXAMPLE

Read more in depth

Page 5: Absolute Beginner's Guide to OOP

Below is screenshot of a folder

Now let’s take them one by one

Page 6: Absolute Beginner's Guide to OOP

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

Page 7: Absolute Beginner's Guide to OOP

Note: A object can have more than one unique features.

All of them has one thing common. All of them are basically files.

Page 8: Absolute Beginner's Guide to OOP

All of them are contained in a folder which we can call class.

Page 9: Absolute Beginner's Guide to OOP

That’s it. Any confusion? Head over to the website given in the link or tweet me @casianandews.