Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Objects - Are there two types?

  1. #1
    Junior Member
    Join Date
    Feb 2021
    Thanked 0 Times in 0 Posts

    Default Objects - Are there two types?

    I understand a class is a blueprint for creating objects and that objects are instances of a class.

    I, also, understand you can create a public Car class by typing: public class Car{

    And that you can create an object by typing: Car Tesla = new Car();

    In a simple car class, I assume it would be common to create objects for each different car brand such as: Tesla, Ford, Honda etc.


    1. I just learned you also have to create objects to access non-static attributes or call non-static methods not present inside the Main Method. Is this a different type of object created for a different purpose?

    2. I have also heard people say a class is basically an object. Is this true, and if so how?
    Last edited by LyndonS; June 4th, 2021 at 03:24 PM. Reason: Change title to better description

  2. #2
    Member Helium c2's Avatar
    Join Date
    Nov 2023
    Kekaha, Kaua'i
    Thanked 0 Times in 0 Posts

    Default Re: Objects - Are there two types?

    Wow. Tough question for me. I am assuming the class possess different functions. One class object is public. Access to all. One is not access to all. That is Car. That subclass might do something else. It could move. One place to another. Or it could just not move. Instead interpret something else. Like the cost of something. Engineering. Yes there are two types instances of an object. One is interpretation. One is just moving around. Both are Car classes. I think. I'm trying my best here to understand the topic.

Similar Threads

  1. Difference between interface and abstract class?
    By sreekanthgude in forum Java Theory & Questions
    Replies: 7
    Last Post: December 7th, 2018, 12:52 AM
  2. Replies: 2
    Last Post: January 9th, 2014, 03:31 PM
  3. Replies: 0
    Last Post: October 14th, 2013, 08:30 PM
  4. Replies: 2
    Last Post: October 9th, 2013, 08:36 AM
  5. What's difference between public class and abstract class?
    By Java95 in forum Java Theory & Questions
    Replies: 7
    Last Post: January 24th, 2012, 07:37 AM

Tags for this Thread