Skip to main content

Posts

Showing posts from April 16, 2019

Java Constructor

Java Constructor In this post we will learn how to create constructor in Java. class DemoClass { public int constructor1; public String constructor2; DemoClass(int constructor1) { this.constructor1 = constructor1; } DemoClass(String constructor2) { this.constructor2 = constructor2; } } public class Main { public static void main(String[] args) { DemoClass demoClass1 = new DemoClass(1); DemoClass demoClass2 = new DemoClass("Demo"); } } Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.                                                     Rozgardesh (रोजगार देश)

Create Virtual Env for Python3.7

Create Virtual Env for Python3.7 Install Python3.7  sudo add-apt-repository ppa:deadsnakes/ppa sudo apt-get install python3.7 Install Python3.7-Venv sudo apt-get install python3.7-venv Create Virtual Env python3.7 -m venv env Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.