Browsing category

Oop Java

Program to Electricity bill calculation using OOP in C++

Program to Electricity bill calculation using OOP in C++ In this tutorial, we will discuss the Program to Electricity bill calculation using OOP in C++ language In this topic, we are going to learn how to calculate the usage of electricity bill using OOP in C++ language   We can calculate monthly electric power usage…

Calculate electricity bill using OOP in Java

Calculate electricity bill using OOP in Java In this tutorial, we will discuss the concept of Calculate electricity bill using OOP in Java In this topic, we are going to learn how to calculate the usage electricity bill using OPP in Java language   We can calculate our monthly electric power usage using different methods…

Recursion in Java programming language

Recursion in Java programming language In this tutorial, we will discuss the concept of Recursion in the Java programming language. In this post, we will learn about the recursive method and how it functions in Java. We have already discussed recursive function in C language, C++  and Python language.   Recursion in Java Recursion is…

Difference between Method and constructor in Java

Difference between Method and constructor in Java In this tutorial, we will discuss the difference between Method and constructor in Java language. This is a very important concept in Java for students or programmers.   Now, we will get to know about the Java method Method The method does not need the name similar to…

Method overloading in Java programming language

Method overloading in Java programming language In this tutorial, we discuss Method overloading in Java programming language. The class has multiple methods with the same name but distinguish parameter in the parameter list. It is called as method overloading in Java. Method overloading is an Oop concept and is one of the features in Java…

Constructor in Java programming language

Constructor in Java programming language In this tutorial, we will discuss Constructor in Java programming language The constructor is similar to a method(the Special type of method) but it is not a method. It is called immediately when an instance of the object is created. When you define constructor you should follow these criteria The…

Constructor overloading in Java programming

Constructor overloading in Java programming We will discuss Constructor overloading in Java programming A Java class can have multiple constructors with the same name but it must have the differing list of parameters it is called as constructor overloading Java allows constructor overloading like method overloading.  The constructor is just a method but is not…

Method in Java programming language with example

Method in Java programming language  with example In this tutorial, We will learn about Method in Java programming language with an example. Method in Java The method is an important concept in Object-oriented programming languages(Oop). In the Java programming language, a method is a segment of code referred to by a name that does a…

Interface in Java programming language

interface in Java programming language In this tutorial, we will learn  about the interface in Java programming language An interface in Java is similar to a class but it is not a class. interface keyword is used to create an interface in Java. An interface is an OOP concept and a technique to achieve abstraction….

Abstract class in Java programming language

Abstract class in Java programming language Abstract class In this tutorial, we will discuss Abstract class in Java programming language In Java programming language, Abstraction is one of the OOP concepts. A class that is declared as abstract is called as an abstract class. The abstract class can have abstract and non-abstract methods   Why…