• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
0

Can I make an object of the class in the same class?

Class person has the main method, can I create an object of person in the main method?

javaclassesobject
29th Mar 2017, 4:10 AM
Manali
1 Answer
+ 14
Yes, you can ^^
29th Mar 2017, 4:25 AM
Tashi N
Tashi N - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Code coach "camel and snake"
0 Votes
Which is better Rust or C++? [CLOSED]
4 Votes
Object Oriented Programming
0 Votes
can someone please tell the error
0 Votes
“Beginner in Coding: Which Language Should I Learn First for Unreal Engine Game Development?”
0 Votes
Past lua programmer to new languages
0 Votes
What is the best coding language to create a successful game on steam
0 Votes
What for Logic building
0 Votes
How to do this
0 Votes
THERE ARE ACTIVITIES APART FROM THE COURSES THAT SOLOLEARN GENERATES FOR US, TO EARN LIVES BY ANSWERING CERTAIN QUESTIONS, HELP
0 Votes