#punjabigyan #PunjabiUniversity #Java #JavaInpunjabi #PunjabiComputer
String and StringBuffer Class in Java.
Lecture 18: User define Exception, Extend Exception Class, Creating subclass of Exception Class.
Lecture 17: Exception Handling in JAVA, try, catch, finally block, multiple catch and nested try
=========================================
Google Form Link: https://forms.gle/wjGDQq7DigyjTq2w6
===============================================
Writing Software Used:Microsoft WhiteBoard
music information:
I Am a Man Who Will Fight for Your Honor by Chris Zabriskie is licensed under a Creative Commons Attribution license (https://creativecommons.org/licenses/by/4.0/)
Source: http://chriszabriskie.com/honor/
Artist: http://chriszabriskie.com/Lecture 18: User define Exception, Extend Exception Class, Creating subclass of Exception Class.
...
https://www.youtube.com/watch?v=UtpGiScE8nM
Inheritance is the process of creating new classes from existing class. The existing class is known as the base class and the newly created class is called as derived class. In some languages base class is called super class and derived is called the subclass. The derived class inherits all the public and protected capabilities of the base class. It can also add some more features to this class.
The main advantages of the inheritance are:
1. re-usability of the code
2. to increase the reliability of the code.
3. to add some enhancements to the base class.
Types
1. single inheritance
2. multilevel inheritance
3. multiple inheritance
4. hybrid inheritace
5. tree type inheritance ( hierarchal )
Powtoon app is used for animation
Bandicam software is used to capture screen
music information:
You’re free to use this song in any of your videos, but you must include the following in your video description:
I Am a Man Who Will Fight for Your Honor by Chris Zabriskie is licensed under a Creative Commons Attribution license (https://creativecommons.org/licenses/by/4.0/)
Source: http://chriszabriskie.com/honor/
Artist: http://chriszabriskie.com/
...
https://www.youtube.com/watch?v=IQGlvX8N0qc
Templates are the foundation of generic programming, which involves writing code in a way that is independent of any particular type.
Function Templates We write a generic function that can be used for different data types.
Function templates are special functions that can operate with generic types. This allows us to create a function template whose functionality can be adapted to more than one type or class without repeating the entire code for each type.
Or
Function Template Template is a method for writing a single function or class for a family of similar functions or classes in a generic manner. When a single function is written for a family of similar functions, it is called as ‘function template’.
Class Templates Like function templates, class templates are useful when a class defines something that is independent of the data type.
Or
class template: In addition to function templates, C++ also supports the concept of class templates. By definition, a class template is a class definition that describes a family of related classes. C++ offers the user the ability to create a class that contains one or more types that are generic or parameterized. The manner of declaring the class template is the same as that of a function template. The keyword template must be inserted as first word for declaring a class template.
For more information visit
https://www.tutorialspoint.com/cplusplus/cpp_templates.htm
https://www.geeksforgeeks.org/templates-cpp/
http://www.cplusplus.com/doc/oldtutorial/templates/
music information:
You’re free to use this song in any of your videos, but you must include the following in your video description:
I Am a Man Who Will Fight for Your Honor by Chris Zabriskie is licensed under a Creative Commons Attribution license (https://creativecommons.org/licenses/by/4.0/)
Source: http://chriszabriskie.com/honor/
Artist: http://chriszabriskie.com/
...
https://www.youtube.com/watch?v=yuERQjdHE8U