Java Program for Super keyword

In this tutorial, we will write a program in java for the use of super keyword. Before that, you should have knowledge on the following topic in Java. Super Keyword in Java Java Program for Super keyword Example of a super keyword to differentiate the members of the superclass from a subclass. Output: Base Class display … Read more

Inheritance Example in Java

In this tutorial, we will write an Inheritance program in java. Before that, you should have knowledge on the following topic in Java. Inheritance in Java Basic Example for Inheritance: Output: My Name is Bruno German Shepard Example of Single Inheritance in Java: Output: Super class method Base class method Example of Multilevel Inheritance in … Read more

Polymorphism Example in Java

In this tutorial, we will write a polymorphism program in java. Before that, you should have knowledge on the following topic in Java. Polymorphism in Java 1. Method Overloading: Method Overloading allows the user to have more than one method that has the same name, they are differed by the number of the parameter lists, … Read more

Encapsulation Example in java

In this tutorial, we will write an encapsulation program in java. Before that, you should have knowledge on the following topic in Java. Java Encapsulation Encapsulation in Java using setter and getter Output: Student Id: 1101 Student Name: Marshall Student Age: 20

Example of Abstraction in Java

In this tutorial, we will write a java program to demonstrate abstraction. Before that, you should have knowledge on the following topic in Java. Abstraction in Java Example of Abstraction in Java Source code: Example of abstract class in java: Output: Cat meows Dog barks

C Program to Convert Decimal to Binary

In this tutorial, we will write a C program to convert decimal to binary. Before that, you must have knowledge of the following topics in C. Binary number The binary numbers are based on 0 and 1, so it is a base 2 number. They are the combination of 0 and 1. For example, 1001, … Read more

C Program to Convert Binary to Decimal

In this tutorial, we will write a program to convert binary to decimal in C. Before that, you must have knowledge of the following topics in C. Binary number The binary numbers are based on 0 and 1, so it is a base 2 number. They are the combination of 0 and 1. For example, … Read more

C Program to Print ASCII Value of a Character

In this tutorial, we will write a program to print ASCII value of a character in C programming. Before that, you should have knowledge on the following topic in C. ASCII stands for American Standard Code for Information Interchange. It is a 7-bit character set that contains 128 (0 to 127) characters. It represents the numerical value of … Read more