Introduction to Java

Java Programming is concisely explained.

Entries from 2019-07-22 to 1 day

10. Abstract Class

In designing a number of classes, you may find there are some common elements among them. To extract the common and make it a class is to create a super class. The individual parts of the original classes become subclasses. In cases we do …

9. Java: toString() method

toString() is a special instance method that returns a string particular to the instance. Whenever the string is demanded, toString() is called and provides the string. The situation the particular string is demanded is like being argument…

8. Java: Inheritance

8. Java: Inheritance Inheritance is to derive a class from another class. It is to create a class by making use of properties of another class. The derived class is called a subclass and the parent class is called a superclass. Constructor…