Home > Back-end >  Java based questions
Java based questions

Time:11-06

Create A class, the class has its own properties, constructors and methods
2, and then create A class B, inherited class A
3, create a class B object, assign a value to it and use it, the method of
4, rewrite the method of class B
5, add a property for a class B, and object to this attribute assignment,
6, add a method for a class B, and the method that use a
How to do this

CodePudding user response:

Like you do not have the answer, no one will be for you to do your homework, homework or 1 + 1 problem, suggest you or did you do first, then issue are not clear, it will soon get its solution

CodePudding user response:

Agree with the idea of 1/f,

Knock yourself code first, then, problems come up to ask again,

You have failed to understand it now even the grammar (in other words, write the code is submitted to the grammatical errors), how is it possible to do the design,
First knock on the code, familiar with Java syntax, etc. What, are you using a simple clipboard writing Java code, using the javac command after compiling, don't quote syntax errors, then talk about the design of the class and the relationship between classes and objects,

CodePudding user response:

Upstairs said is quite right ~ you try to write don't understand, ask her to discuss ~ so give you an answer directly copy do not have what meaning, look at the content is just learning, or try to compare good ~

CodePudding user response:

What also not ah, this thing you call rewriting method of class B, class B class hierarchy, zha rewriting method B, you should be not understand the concept of each noun
  • Related