Summary

In this chapter, we have learned what is class and the benefits of creating a class. We learned how to create an instance or an object. Instance and object are the same thing. We learned the difference between class variable and instance variable. Class variables are shareable among all the regular methods. Static methods are unique to instances. In class inheritance, we learned the benefit of inheritance and code reuse. By using method overriding, we can override the method of the parent class. In operator overloading, we learned how to change the behavior of the built-in operator. We learned why to create static and class methods. The class methods are created to change class attributes. In the end, we learned the benefits of private methods and private variables.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.137.186.178