Skip to content
Learn With Shikha

Constructor

What is a constructor in oop?

May 8, 2021 by shikhasharma
Constructor

In OOP(Object-oriented programming) constructor is a special method. It is called whenever you create an object using new keyword. Constrictor enables an object to initialize itself at the time of its creation without the need to make a separate call to the instance method. It looks like a method but it is different from the method in … Read more

Categories Java, Programming Tags Constructor, java, OOp, Programming 1 Comment

Recent Posts

  • Exploring Non-Primitive Data Types in Java
  • Different Types of Variables in Java
  • Variables in Java: A Beginner’s Guide
  • Understanding Static Variables in Java
  • Understanding Instance Variables in Java
  • Understanding Local Variables in Java
  • Creating and Using Variables in Java
  • Understanding Java Data Types with Examples
  • Java Primitive Data Types and Variables
  • How to Compile and Run a Java Program from Command Prompt
  • Structure of Java: An Overview
  • Programming in Java: A Beginner’s Guide
  • Java: A Versatile Programming Language for the Modern World
  • Exploring the Powerful Features of Java
  • Exploring the Java Development Kit (JDK)

advertisement

© 2023 Learn With Shikha • Built with GeneratePress