Search:

Type: Posts; User: avistein

Search: Search took 0.10 seconds.

  1. Re: How to create a parametrized constructor ,with parameters accepting from a accept() function?

    import java.io.*;
    class student
    {
    String name;
    int age,m1,m2,m3,maxi;
    float avg;
    student(String n,int a,int m4,int m5,int m6)
    {
    age=a;
    m1=m4;
  2. Re: How to create a parametrized constructor ,with parameters accepting from a accept() function?

    See here is the question.I have to create the object and call the methods.It is required to call the object by creating object only.

    Define a class student described as below:-
    Data...
  3. Re: How to create a parametrized constructor ,with parameters accepting from a accept() function?

    Yes I know.but I don't want to create.
  4. How to create a parametrized constructor ,with parameters accepting from a accept() function?

    For example,

    class cons
    {
    int d;
    cons(int a)
    {
    d=a;
    }
    void accept(String args[])throws IOException
Results 1 to 4 of 4