formatting
This commit is contained in:
@ -7,10 +7,10 @@ Objects are generally used to keep data logically grouped and also make it easy
|
||||
to perform actions on them without having to account for all the logic at the
|
||||
time of using those functions.
|
||||
|
||||
As an example I have created a Car class. This is probably going to be the
|
||||
main class used in all further lessons, since it has a lot of room for more data
|
||||
and functions to add except for manufacturer, model and the function print_info
|
||||
in this example.
|
||||
As an example I have created a Car class. This is probably going to be the main
|
||||
class used in all further lessons, since it has a lot of room for more data and
|
||||
functions to add except for manufacturer, model and the function print_info in
|
||||
this example.
|
||||
|
||||
```java
|
||||
/*
|
||||
@ -47,7 +47,8 @@ a.print_info();
|
||||
b.print_info();
|
||||
```
|
||||
|
||||
The above example code together with the car class will create the following output:
|
||||
The above example code together with the car class will create the following
|
||||
output:
|
||||
|
||||
```text
|
||||
Car Information:
|
||||
|
Reference in New Issue
Block a user