javascript
Brief description  about Online courses   join in Online courses
View suhail ahmad saleem 's Profile

Section 3 - Object Oriented Programming class

I understood the whole concept of linking 2 classes but don't understand who do we link 2 different class in notepad???
When I try to run MyOwnCar.java it give errors because the other half of that class is in car.java
please helo
Asked by suhail ahmad saleem | Sep 14, 2016 |  Reply now
Replies (2)
View Micheal Smith 's Profile
Try each class different file. Only execute steps given prior to assignment.
Feb 4, 2018
View Nitika Maheshwari 's Profile
store both class in different files but in same folder. it will run .for example i create file name stu_name.java and define class stu_name including function print_name to print name. then i create another file link_class.java in which i create object of class stu_name and call function print_name. Save both files in same folder.
Sep 24, 2016