calling value in class within another class

Main.ico

#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);

#include "LM35.h"

void setup(){
  lcd.begin();
  Serial.begin(9600);
  lcd.setCursor(0,0);
  lcd.print("Berker");
  delay(500);

  LM35.LM35Setup(A1);
  LM35.LM35Display();
}

void loop(){

LM35.LM35Loop();

}

LM35.h

class LM35Sen {

private:

float Temp_C;  
float Lm35outPin;
int Lm35inPin;

public:

float temp_C;
float lm35outPin;
int lm35inPin;

void LM35Setup( int Lm35outPin){
lm35outPin = Lm35outPin;
lm35inPin  = Lm35inPin;
temp_C     = Temp_C;
pinMode(Lm35inPin,INPUT);
}

void LM35Loop(){
Lm35outPin = analogRead(A1);   
Lm35outPin = (Lm35outPin*500)/1023;
Temp_C = Lm35outPin;
lcd.setCursor(10,0);
lcd.print(Temp_C);
Serial.println(Temp_C);
delay(1000);
}

void LM35Display(){
lcd.setCursor(0,0);
lcd.print("LM35-tmp:");
lcd.setCursor(15,0);
lcd.print("c");
delay(1000);
}
};

LM35Sen LM35;

How can I call temp_C from lm35.h class in another class?

You might want to break your LM35 into two files..

Traditionally the .h file is for the interface to the outside world and the cpp file is for the actual code. Also your choicse of names is really confusing. Your trying to assign A0 to lm35outPin. Then you assign lm35inPin to itself but undefined. Then later it looks like you'r useing the lm35outPin in your calculation..

-jim lee