Transcript for:
Object-Oriented Programming Concepts

what is object instance of the class instance of the class instance of the CL BL St Myer inst of the new class and object the save image definition accelate first form string hello appr in the parameter name let's drive print my car equal to the so hello Raja let's rock and print out the my car. accelerate PR so print another car. accelerate object f a plus b subtract subract a b next return a minus B return a minus B next multiply multiply comma a comma B return a star B divide function divide divide comma a comma B return a / B okay class calcor equal to in the calor function ini so calculator dot add of value pass 3 comma culator dot subtract of 5 comma 3 next print of m equal calculator dot multiply of 2 comma 5 so print M CIA divide DV equal to calculator do divide 10 comma 2 print of so and and subract 2 and 10 if Bal equal to0 return cannot divided by divide by okay construct Constructor class my class colon open and close bracket next parameter one self do attribute attribute one equal to parameter 1 the self do attribute 2al equ Al to parameter 2 equal to my class of value one print of obj attribute obj attribute initial value inst initial value initial value equal to in the initial value so initial value default default ini the class and object object oriented programing one of the mainar 19s learns development hub