Answer Posted / jasbir singh
a constructor method's name is same as the name of class,
secondly, you cannot manually call the constructor method
after creating the object.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Topic- looping,function overloading,nesting ,polymorphism. Aim - to write a function with a name buzz-buds,that will check whether the given numbers are buddies or not on the basis of no. of parameters passed during function calling.
What is an entity in java?
What happens when the parent process of a child process exits before the child ?
What are the risks in java security? : java security
What is the java api?
Why do we create dto in java?
Name primitive java types.
What is @resource annotation in java?
What is ui framework in java?
What is the resourcebundle class?
What is the difference between lambda expression and anonymous methods?
Can a dead thread be started again?
What is class forname java?
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.
What is a uint8?