In this video, the concept of calling methods and constructors is explained with the help of Employee and Bank account programs.
Link to the Book - Essentials of Computer Applications:
https://www.amazon.in/Essentials-Comp...
Link to Explicit Conversion video
• Lesson 13 Type Conversion - Implicit, Exp...
Link to Constructors video
• Lesson 36 Constructors in Java, final vari...
Link to Lesson 23 Menu programs using do while loop
• Lesson 23 The do - while loop in Java
Practice Exercise constructors and methods
1. Create a class called Product with the following specifications.
Member variables: Name, price, quantity
Member methods: Default constructor, Parameterized constructor
Read method, Display method
Find bill which returns bill (price* quantity)
Create a main () method and call all the above methods
2. Create a class called Library with the following specifications.
Member variables: Name of the book, Author, Number of copies and price
Member methods: Default constructor, Parameterized constructor
Read method, Display method
Create a main () method and call all the above methods