what is constructer?what are the type of constructer with
example.
Answer Posted / kool
A constructer has same name as class .it does not have any
data type in a program we can only have one constructer
with a class name because they can be overloaded.if we dont
create one the programe creates one for us.
public class kool{
/** constructer
public kool(){
*/
}
}
| Is This Answer Correct ? | 5 Yes | 5 No |
Post New Answer View All Answers
there are 67 seats in train . there are only 5 seats in a row and in last row there are only 2 seats. One person can reseve only 5 seat at a time. If person reserving seat , the care is atken that he may get all in row. if seats are not available in row then the arrangement is so that person group get nearby seats. the following class is given public class seat { char name; int seat; boolean isSeatempty } 1.Draw require class digram and object diagram. 2.Write function seatallot(int noofperson) to allocate seat with seat nuber printed for the each name.
Is it better to learn java or python?
Why do we create dto in java?
Can optional be null?
Define network programming?
What are the risks in java security? : java security
What is java ioc?
What is web xml java?
Can the main method be overloaded?
What are the advantages of java sockets?
Explain issues of old java date api?
What is jdk for netbeans ide?
What is lambda value?
What is @resource annotation in java?
What is a yaml file in java?