What are constructors and Deconstructors?

Constructors are special class functions which performs initialization of every object . The Compiler calls the Constructor whenever an object is created. Constructors initialize values to object members after storage is allocated to the object. Whereas, Destructor on the other hand is used to destroy the class object.

Read more

What is method overloading and method overriding with example?

Overloading vs Overriding: Difference between Method Overloading and Method Overriding Method OverloadingMethod OverridingIs an example of compile-time polymorphismIt is an example of runtime polymorphismReturn type can be different but you must change the parameters as well.Return type must be same in overridingMethod Overloading vs Method Overriding in Java | Edureka www.edureka.co › blog › method-overloading-and-overriding-in-java

Read more