help me with all the tasks in level 04 lesson 02 all tasks

asked 05 Mar '15, 12:42

vishnu's gravatar image

vishnu
11
accept rate: 0%


give me first task of that level. Don't ask just all task

link

answered 05 Mar '15, 17:02

AristocratSudip's gravatar image

AristocratSudip
163
accept rate: 4%

any help for this task

/ Implement method setName() Implement the setName method, so the value of the private String name variable would be equal to the passed String name parameter. /

public class Cat {
    private String name;

    public void setName(String name) {
        //add your code here
    }
}
link

answered 10 Mar '15, 18:10

Muhammad%20Jawwad's gravatar image

Muhammad Jawwad
3015
accept rate: 25%

edited 13 Mar '15, 07:02

Elleonora%20Carry's gravatar image

Elleonora Carry ♦♦
275

(10 Mar '15, 21:45) Elleonora Carry ♦♦

just write this.name = name;

link

answered 16 Jun '18, 02:40

MykytaZ's gravatar image

MykytaZ
11
accept rate: 0%

In task2 you must write catsCount ++;

(16 Jun '18, 02:45) MykytaZ

public static void addNewCat() { Cat.catsCount = catsCount; catsCount = catsCount + 1;//add your code here }

link

answered 01 Sep '18, 08:08

Vladymyr's gravatar image

Vladymyr
1
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×36

Asked: 05 Mar '15, 12:42

Seen: 1,799 times

Last updated: 01 Sep '18, 08:08