Java Program using constructors

Simple Java Program using constructors.
Here the constructor is “Cars”.

//constructors
public class Cars
                {
                public Cars(String name)
                                {
                                System.out.println("super "+name);

                                }
                public static void main(String []args)
                                {
                                Cars bmw=new Cars("cars");
                                }

                }

Click here for instructions for executing the program.

Popular posts from this blog

How to pass variables to res.render() in Node.js

Talky Messenger Documentation & Setup