Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about base-class

Read more about base-class

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - base-class

can derived class access base class non-static members without object of the base class

can derived class access base class non-static members without object of the base class class base { public: int data; void f1() { } }; class derived : base { public : void ...
test-img

Mathews lee

c++

derived-class

base-class

non-static

Votes: 0

Answers: 1

Latest Answer

In your 1st example class derived : base { void f() { base::data = 44; } }; f() is not-static. It works on an object of derived, which includes an object of base. So, base::data ...
test-img

Eugene

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved