-
Notifications
You must be signed in to change notification settings - Fork 12
Session2 Notes
OOPS Introduction
Real Life Object : Anything which exists in reality example : chair, you and me, mobile phone etc...
Class : Representation how an object will look like
Drawing of an Object
What should we think of first -> Class or Object ?
Principle of OOPS
1. Think of an Object
2. Create its Class i.e. Drawing
3. From Class i.e Drawing create a Real Object
Computer Science
Object : is a Multi Value Container
can be homogeneous or hetrogeneous
Class : is a Textual Representation how an object will look like in the memory
is Description of Object
Coding the Object's Description
Question : How to find Objects ? Answer : Follow your problem Statement !!
One of the client has a requirement as in a problem statement Requirements: Create a software in whcih restaurants can be listed. Customer should be able to see them alongwith its Menu. Thereafter customer shall place an order. Either Online Payments or Cash should be permitted !!
How we will find Objects? Anything which will have lot of data associated with it !!
Restaurant, Customer, Menu, Dish, Order, Payment ...
Restaurant image name phone email address type category pricePerPerson rating landMark
Restaurant is an Object image, name, phone etc are attributes of Restaurant Object