Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8076549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T15:16:58+00:00 2026-06-05T15:16:58+00:00

i am studying apple obj-c guide and i am having problem understanding class types,

  • 0

i am studying apple obj-c guide and i am having problem understanding class types, the doc says

A class definition is a specification for a kind of object. The class,
in effect, defines a data type. The type is based not just on the data
structure the class defines (instance variables), but also on the
behavior included in the definition (methods). A class name can appear
in source code wherever a type specifier is permitted in C—for
example, as an argument to the sizeof operator:

int i = sizeof(Rectangle);

And sizeof is operator not c method?

And please also clear me what this means

Objects are always "typed by" a pointer.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T15:16:59+00:00Added an answer on June 5, 2026 at 3:16 pm

    Sorry, but probably you should start from something easier then obj-c.

    In OOP (object-oriented programming) you start from base types (int, long, char, sometimes string, etc.).
    Then you have class that contains base types properties and methods (similarly to struct in C).

    A class can usually be instantiated, that means you create a object of that type. E.g.

    class Person {
    
        int age;
    
        string name;
        string surname;
    
        void printFullName() {
    
            Console.WriteLine(name + " " + surname);
    
        }
    
    }
    

    If you write

    var myperson = new Person();
    

    you created a new object of type Person, with

    myperson.printFullName();
    

    you can access its method printFullName()

    In the example sizeof is a C unary operator (like ++ or –) and Rectangle is a type, a class.
    By the way, that example is a bit confusing, search for another one.

    Objects are always “typed by” a pointer.

    means that any object you create is typized by a pointer that defines its type.
    Mmmh, it’s hard to explain 🙂

    Hope this code can help you 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently studying UITabBarController in Apple doc but I haven't clear what is
In studying actionscript 3's graphics class, I've come across the undocumented drawRoundRectComplex() method. It's
I've been studying the sample code Apple provides in their iPhoneCoreDataRecipes application and there
While studying C# in ASP.net I have trouble understanding several classes. In which scenario
I started studying Haskell one week ago and have one strange problem. I created
I studying NSCharacterset class. NSString and NSCharacterset look like similar class. Who can explain
I'm studying Apple's LazyTableImages sample code. I'd like to understand how the app is
I'm studying the Low-Level File Management Programming Topics from Apple. In the NSFileHandle section,
I started studying classes and now I faced a problem. I'm trying to put
Studying compilers course, I am left wondering why use registers at all. It is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.