filmov
tv
Day 08 Java + Python Free Live Training OOPS Classes Objects

Показать описание
Day 8 : Java + Python training
OOPS - Object Oriented Programming Systems
Why not consider real life kind object behavior for programs too.
Objects have 2 things
Properties - to describe (red box, sports car, tall guy) or identify (bar code, VIN/LIC, email/dna)
Methods - actions, functions that we can perform on these objects
Classes
Class is a blue print for an object.
It contains the standards of
List of properties
List of Methods
You can create an object from that class. At that time, you have specific information going into it.
Example :
Class : Car
Properties: make, model, year, fuel-capacity
Methods : drive, park, refuel
Object : 3 objects created using the class Car
myCar (ford, f150, 2010, full),
yourCar (bmw, m5, 2019, half)
neighborsCar (porsche, 911, 2015, empty)
Properties/Attributes
Methods
Every object in the class will behave in a similar fashion. And are bound to those specific properties and methods.
OOPS - Object Oriented Programming Systems
Why not consider real life kind object behavior for programs too.
Objects have 2 things
Properties - to describe (red box, sports car, tall guy) or identify (bar code, VIN/LIC, email/dna)
Methods - actions, functions that we can perform on these objects
Classes
Class is a blue print for an object.
It contains the standards of
List of properties
List of Methods
You can create an object from that class. At that time, you have specific information going into it.
Example :
Class : Car
Properties: make, model, year, fuel-capacity
Methods : drive, park, refuel
Object : 3 objects created using the class Car
myCar (ford, f150, 2010, full),
yourCar (bmw, m5, 2019, half)
neighborsCar (porsche, 911, 2015, empty)
Properties/Attributes
Methods
Every object in the class will behave in a similar fashion. And are bound to those specific properties and methods.